dev #19

Merged
profitroll merged 98 commits from dev into master 2023-04-24 13:48:22 +03:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit 5ad52aa3f8 - Show all commits

View File

@ -8,8 +8,7 @@ from traceback import print_exc
from typing import Tuple, Union
import aiofiles
from aiohttp import ClientSession, FormData
from ujson import dumps
from aiohttp import FormData
from classes.exceptions import (
AlbumCreationDuplicateError,
@ -21,10 +20,7 @@ from classes.exceptions import (
)
from modules.logger import logWrite
from modules.utils import configGet, locale
http_session = ClientSession(
json_serialize=dumps,
)
from modules.http_client import http_session
async def authorize() -> str:

6
modules/http_client.py Normal file
View File

@ -0,0 +1,6 @@
from aiohttp import ClientSession
from ujson import dumps
http_session = ClientSession(
json_serialize=dumps,
)