From 4017524657d0dd87cbc66c437751b9ff0c8566c3 Mon Sep 17 00:00:00 2001 From: Dee Dev <6505001948@rumail.ru.ac.th> Date: Fri, 5 Aug 2022 09:21:59 +0700 Subject: [PATCH] Update http.py --- enkanetwork/http.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/enkanetwork/http.py b/enkanetwork/http.py index 46b5530..549c1b8 100644 --- a/enkanetwork/http.py +++ b/enkanetwork/http.py @@ -137,7 +137,6 @@ class HTTPClient: def fetch_user(self, uid: Union[str, int]) -> Response[EnkaNetworkPayload]: if not utils.validate_uid(str(uid)): raise VaildateUIDError("Validate UID failed. Please check your UID.") - r = Route( 'GET', f'/u/{uid}/__data.json' + (f"?key={self.__key}" if self.__key else ""), @@ -152,6 +151,5 @@ class HTTPClient: f'master/exports/{folder}/{filename}' 'assets' ) - return self.request(r)