Skip to content

Commit 62ed48e

Browse files
author
oldpondplop
committed
tremendous fix
1 parent 2a339e3 commit 62ed48e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

backend/app/api/deps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def get_current_user(session: SessionDep, token: TokenDep) -> User:
3838
status_code=status.HTTP_403_FORBIDDEN,
3939
detail="Could not validate credentials",
4040
)
41-
print(F'TREMENDOUS3: {token_data.sub}, {type(token_data)}')
42-
user = session.get(User, token_data.sub)
41+
user = session.get(User, uuid.UUID(token_data.sub))
4342
if not user:
4443
raise HTTPException(status_code=404, detail="User not found")
4544
if not user.is_active:

backend/app/core/db.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ def init_db() -> None:
2525
is_superuser=True,
2626
)
2727
user = crud.create_user(session=session, user_create=user_in)
28-
print("======================"*10)
29-
print(f"{user=}")
30-
print("======================"*10)
3128

3229
print("Database initialized successfully!")

0 commit comments

Comments
 (0)