Update db.py

main
witchdocsec 2024-05-28 02:02:15 +01:00 committed by GitHub
parent 728ee67f9d
commit 43d511c431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ def fetchall():
with get_session() as session:
#query passwords by domain
p = session.query(Password)
p = session.query(Password).all()
#if one is found
if p:
@ -96,4 +96,4 @@ def update(domain,ccred):
#error
else:
return f"No cred found for '{domain}'"
return f"No cred found for '{domain}'"