mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-02 07:01:23 -05:00
fix: Lint Python code with ruff (#3799)
This commit is contained in:
@@ -70,7 +70,7 @@ async def get_token(
|
||||
@user_router.get("/refresh")
|
||||
async def refresh_token(current_user: PrivateUser = Depends(get_current_user)):
|
||||
"""Use a valid token to get another token"""
|
||||
access_token = security.create_access_token(data=dict(sub=str(current_user.id)))
|
||||
access_token = security.create_access_token(data={"sub": str(current_user.id)})
|
||||
return MealieAuthToken.respond(access_token)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user