Changed aiohttp module location
This commit is contained in:
parent
45789ad013
commit
5ad52aa3f8
@ -8,8 +8,7 @@ from traceback import print_exc
|
|||||||
from typing import Tuple, Union
|
from typing import Tuple, Union
|
||||||
|
|
||||||
import aiofiles
|
import aiofiles
|
||||||
from aiohttp import ClientSession, FormData
|
from aiohttp import FormData
|
||||||
from ujson import dumps
|
|
||||||
|
|
||||||
from classes.exceptions import (
|
from classes.exceptions import (
|
||||||
AlbumCreationDuplicateError,
|
AlbumCreationDuplicateError,
|
||||||
@ -21,10 +20,7 @@ from classes.exceptions import (
|
|||||||
)
|
)
|
||||||
from modules.logger import logWrite
|
from modules.logger import logWrite
|
||||||
from modules.utils import configGet, locale
|
from modules.utils import configGet, locale
|
||||||
|
from modules.http_client import http_session
|
||||||
http_session = ClientSession(
|
|
||||||
json_serialize=dumps,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def authorize() -> str:
|
async def authorize() -> str:
|
||||||
|
6
modules/http_client.py
Normal file
6
modules/http_client.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from aiohttp import ClientSession
|
||||||
|
from ujson import dumps
|
||||||
|
|
||||||
|
http_session = ClientSession(
|
||||||
|
json_serialize=dumps,
|
||||||
|
)
|
Reference in New Issue
Block a user