Skip to content

Commit

Permalink
Fixed Delete Password Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Equat-ion committed Jan 21, 2025
1 parent cf49567 commit cdd56ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_passwords(self):

def delete_password(self, service, userid):
data = self.read_data()
updated_data = [entry for entry in data if not (entry["service"] == service and entry[userid] == userid)]
updated_data = [entry for entry in data if not (entry["service"] == service and entry["userid"] == userid)]
self.write_data(updated_data)

def update_password(self, service, userid, new_enc_passwd):
Expand Down

0 comments on commit cdd56ec

Please sign in to comment.