Fix bugs with empty tables

This commit is contained in:
2025-05-19 12:14:23 +02:00
parent 4ee1d99224
commit cd2b7ae14c
4 changed files with 89 additions and 81 deletions

View File

@@ -106,7 +106,7 @@ async def authorize(request: Request):
if result:
user_db_id = result[0]
else:
print("Create User in DB")
print(f"User {profile['preferred_username']} not found in database, creating new user.")
user_db_id = create_postpaid_user(profile["preferred_username"])
request.session["user_db_id"] = user_db_id