fix not getting list of folders
This commit is contained in:
parent
84d3f341bd
commit
fc312776fa
1 changed files with 5 additions and 3 deletions
|
@ -1158,9 +1158,11 @@ class NextcloudHandler:
|
|||
|
||||
def get_folder_id(self, folder_name):
|
||||
'''Get a folder id from the name'''
|
||||
for folder in self.list_passwords_folders():
|
||||
if folder['label'] == folder_name:
|
||||
return folder['id']
|
||||
passwords_folders = self.list_passwords()
|
||||
if passwords_folders:
|
||||
for folder in passwords_folders:
|
||||
if folder['label'] == folder_name:
|
||||
return folder['id']
|
||||
return False
|
||||
|
||||
class NcPasswordClient:
|
||||
|
|
Loading…
Reference in a new issue