Update db.py
parent
728ee67f9d
commit
43d511c431
|
@ -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}'"
|
||||
|
|
Loading…
Reference in New Issue