Fix cached password ref
This commit is contained in:
parent
784d3fa662
commit
8f7f31c67c
1 changed files with 3 additions and 3 deletions
|
@ -837,10 +837,10 @@ class NextcloudHandler:
|
|||
)
|
||||
|
||||
if r.status_code == 201:
|
||||
if self.cached_passwords:
|
||||
self.cached_passwords.append(post_obj)
|
||||
if self.cache['cached_passwords']:
|
||||
self.cache['cached_passwords'].append(post_obj)
|
||||
else:
|
||||
self.cached_passwords = [ post_obj ]
|
||||
self.cache['cached_passwords'] = [ post_obj ]
|
||||
return r.json()
|
||||
self.error(r.json())
|
||||
self.error(
|
||||
|
|
Loading…
Reference in a new issue