Removed prints

This commit is contained in:
StNicolay 2022-10-14 19:35:16 +03:00
parent 4702e048f3
commit 822061ae49
2 changed files with 0 additions and 2 deletions

View File

@ -11,7 +11,6 @@ def get_master_pass(engine: Engine, user_id: int) -> tuple[bytes, bytes] | None:
) )
with sqlmodel.Session(engine) as session: with sqlmodel.Session(engine) as session:
result = session.exec(statement).first() result = session.exec(statement).first()
print(result)
if result is None: if result is None:
return return
return (result.salt, result.passwd) return (result.salt, result.passwd)

View File

@ -8,7 +8,6 @@ def get_engine(host: str, user: str, passwd: str, db: str) -> Engine:
engine = sqlmodel.create_engine( engine = sqlmodel.create_engine(
f"mariadb+mariadbconnector://{user}:{passwd}@{host}/{db}" f"mariadb+mariadbconnector://{user}:{passwd}@{host}/{db}"
) )
print(type(engine))
return engine return engine