fix not getting list of folders

This commit is contained in:
Antonio J. Delgado 2024-12-06 20:52:22 +02:00
parent 84d3f341bd
commit fc312776fa

View file

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