Skip to content

Commit

Permalink
Fix error in generate_token script (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
javihernandez authored Feb 12, 2025
1 parent 3399762 commit 361a9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def gen_token(secret: str, email: str = None, username: str = None):
get_async_session_context = open_async_session(key=get_async_db_key())
get_user_db_context = contextlib.asynccontextmanager(get_user_db)
get_user_manager_context = contextlib.asynccontextmanager(get_user_manager)
async with get_async_session_context() as session:
async with get_async_session_context as session:
conds = []
if email:
conds.append(User.email == email)
Expand Down

0 comments on commit 361a9e8

Please sign in to comment.