mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Fix pattern
This commit is contained in:
parent
0cbe0d54d8
commit
886dcc8c8b
@ -2,6 +2,7 @@ import json
|
|||||||
|
|
||||||
from cachetools import TTLCache
|
from cachetools import TTLCache
|
||||||
|
|
||||||
|
|
||||||
class Cache:
|
class Cache:
|
||||||
def __init__(self, maxsize, ttl):
|
def __init__(self, maxsize, ttl):
|
||||||
self.cache = TTLCache(maxsize, ttl)
|
self.cache = TTLCache(maxsize, ttl)
|
||||||
|
@ -4,7 +4,6 @@ import json
|
|||||||
|
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
|
|
||||||
from .model import EnkaNetworkResponse
|
from .model import EnkaNetworkResponse
|
||||||
from .exception import VaildateUIDError, UIDNotFounded
|
from .exception import VaildateUIDError, UIDNotFounded
|
||||||
from .assets import Assets
|
from .assets import Assets
|
||||||
|
@ -52,7 +52,7 @@ async def request(url: str, headers: dict = None) -> dict:
|
|||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
retry = 0
|
retry = 0
|
||||||
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session:
|
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session: # noqa: E501
|
||||||
"""
|
"""
|
||||||
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
|
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user