fmt
All checks were successful
deploy / deploy (push) Successful in 53s

This commit is contained in:
2024-04-19 11:50:50 +03:00
parent 6a450a84c1
commit 41af1a7349
5 changed files with 15 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ def login_required(f):
info = args[1]
context = info.context
req = context.get("request")
user_id, user_roles = await check_auth(req)
user_id, user_roles = await check_auth(req)
if user_id and isinstance(user_id, str):
context["user_id"] = user_id.strip()
author = await get_author_by_user(user_id)
@@ -77,7 +77,7 @@ def auth_request(f):
@wraps(f)
async def decorated_function(*args, **kwargs):
req = args[0]
user_id, user_roles = await check_auth(req)
user_id, user_roles = await check_auth(req)
if user_id and isinstance(user_id, str):
user_id = user_id.strip()
author = await get_author_by_user(user_id)