formatted

This commit is contained in:
2023-10-14 15:59:43 +03:00
parent 4ddc424f29
commit 154633c114
15 changed files with 63 additions and 48 deletions

View File

@@ -1,8 +1,9 @@
import json
from functools import wraps
from httpx import AsyncClient, HTTPError
from settings import AUTH_URL
from httpx import AsyncClient, HTTPError
from settings import AUTH_URL
INTERNAL_AUTH_SERVER = "v2.discours" in AUTH_URL or "testapi.discours" in AUTH_URL
@@ -19,12 +20,12 @@ async def check_auth(req):
gql = {
"query": query_type
+ " "
+ operation
+ " { "
+ query_name
+ " { user { id } } "
+ " }",
+ " "
+ operation
+ " { "
+ query_name
+ " { user { id } } "
+ " }",
"operationName": operation,
"variables": None,
}

View File

@@ -1,4 +1,5 @@
import json
from services.redis import redis
from validators.inbox import Message

View File

@@ -1,4 +1,5 @@
import redis.asyncio as aredis
from settings import REDIS_URL