From d5368f5d484c8c85b2307e77930d315f85365e62 Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Fri, 24 May 2024 11:38:49 +0200 Subject: Configurable season number --- app_types/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app_types') diff --git a/app_types/__init__.py b/app_types/__init__.py index 699928a..687faad 100644 --- a/app_types/__init__.py +++ b/app_types/__init__.py @@ -1,5 +1,7 @@ import fortnitepy +__season__ = 29 # must correlate to currently active season number + class UserStats: user_id: str user_display_name: str @@ -30,7 +32,7 @@ class User: async def fetch_stats(self) -> UserStats: stats = await self.__fortnite_user.fetch_br_stats() - bp_level: float = await self.__fortnite_user.fetch_battlepass_level(season=29) # TODO + bp_level: float = await self.__fortnite_user.fetch_battlepass_level(season=__season__) combined_stats = stats.get_combined_stats() device_stats = {} if 'keyboardmouse' in combined_stats: -- cgit v1.2.3