Fix cached password ref

This commit is contained in:
Antonio J. Delgado 2024-11-18 08:32:30 +02:00
parent 784d3fa662
commit 8f7f31c67c

View file

@ -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(