Fix fetch_raw

This commit is contained in:
M307 (Mac) 2023-02-26 16:33:18 +07:00
parent 629d7b1e9d
commit ed25068656

View File

@ -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)