mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-09-28 03:26:09 +00:00
Fix fetch_raw
This commit is contained in:
parent
629d7b1e9d
commit
ed25068656
@ -344,15 +344,12 @@ class EnkaNetworkAPI:
|
||||
return Builds.parse_obj(data)
|
||||
|
||||
async def fetch_raw_data(self, uid: Union[str, int], *, info: bool = False) -> Dict[str, Any]:
|
||||
"""Fetches raw data for a user with the given UID.
|
||||
|
||||
c
|
||||
"""
|
||||
"""Fetches raw data for a user with the given UID. """
|
||||
|
||||
# Loda cache
|
||||
cache = await self.__get_cache(uid)
|
||||
if cache:
|
||||
return EnkaNetworkResponse.parse_obj(cache)
|
||||
return cache
|
||||
|
||||
data = await self.__http.fetch_user_by_uid(uid, info=info)
|
||||
data = self.__format_json(data)
|
||||
|
Loading…
Reference in New Issue
Block a user