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,7 +1158,9 @@ class NextcloudHandler:
|
||||||
|
|
||||||
def get_folder_id(self, folder_name):
|
def get_folder_id(self, folder_name):
|
||||||
'''Get a folder id from the name'''
|
'''Get a folder id from the name'''
|
||||||
for folder in self.list_passwords_folders():
|
passwords_folders = self.list_passwords()
|
||||||
|
if passwords_folders:
|
||||||
|
for folder in passwords_folders:
|
||||||
if folder['label'] == folder_name:
|
if folder['label'] == folder_name:
|
||||||
return folder['id']
|
return folder['id']
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue