From 9310c85be2b853209c610c822b83e75e944065de Mon Sep 17 00:00:00 2001 From: "M307 (Mac)" Date: Tue, 7 Feb 2023 16:30:36 +0700 Subject: [PATCH] Fix fetch_hoyos_by_username --- enkanetwork/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/enkanetwork/client.py b/enkanetwork/client.py index e48f51f..c2534d5 100644 --- a/enkanetwork/client.py +++ b/enkanetwork/client.py @@ -164,7 +164,6 @@ class EnkaNetworkAPI: """ func = self.__http.fetch_user_by_uid(uid, info=info) data = await self.request_enka(func, uid) - self.LOGGER.debug("Parsing data...") # Return data self.LOGGER.debug("Parsing data...") if "owner" in data: @@ -246,8 +245,8 @@ class EnkaNetworkAPI: A response hoyos player data """ key = profile_id + ":hoyos" - func = self.__http.fetch_hoyos_by_username(key) - data = await self.request_enka(func, profile_id) + func = self.__http.fetch_hoyos_by_username(profile_id) + data = await self.request_enka(func, key) self.LOGGER.debug("Parsing data...") return await self.__format_hoyos(profile_id, data)