start work on user auth

This commit is contained in:
Jack Case
2025-10-19 21:41:12 +00:00
parent be54710f59
commit 96a91b6bc5
2 changed files with 27 additions and 4 deletions

View File

@@ -44,3 +44,10 @@ def insert_slop(urls: list[ParseResult], engine: Engine):
existing_domain.paths.append(Path(path=path))
session.commit()
def get_user(email, engine):
query = select(User).where(User.email == email)
with Session(engine) as session:
user = session.scalar(query)
return user