From ed25068656946d592e2eccde332e2df116235290 Mon Sep 17 00:00:00 2001 From: "M307 (Mac)" Date: Sun, 26 Feb 2023 16:33:18 +0700 Subject: [PATCH] Fix fetch_raw --- enkanetwork/client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/enkanetwork/client.py b/enkanetwork/client.py index eaf8f82..f99f69e 100644 --- a/enkanetwork/client.py +++ b/enkanetwork/client.py @@ -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)