Fix getting password

This commit is contained in:
David Němec 2019-11-02 10:16:14 +01:00
parent 44e8e8dac4
commit 182fef1355
No known key found for this signature in database
GPG Key ID: B1064EFFFD11AA75

View File

@ -29,7 +29,7 @@ class Item:
return self.item['login']['username'] if self.item['login']['username'] else ''
def get_password(self) -> str:
if 'password' not in self.item:
if 'login' not in self.item:
return ''
return self.item['login']['password'] if self.item['login']['password'] else ''