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)

View File

@@ -1,9 +1,8 @@
import asyncio
import json
import logging
from datetime import datetime, timedelta, timezone
import json
from services.logger import root_logger as logger
from services.rediscache import redis

View File

@@ -1,8 +1,7 @@
import json
from services.logger import root_logger as logger
from models.chat import ChatUpdate, Message
from services.logger import root_logger as logger
from services.rediscache import redis