diff options
| author | Dmitrii Morozov <snoopdesigns@gmail.com> | 2025-10-12 19:45:14 +0200 |
|---|---|---|
| committer | Dmitrii Morozov <snoopdesigns@gmail.com> | 2025-10-12 19:45:14 +0200 |
| commit | 6178dd772851449ef559791c1b871da39948895b (patch) | |
| tree | df635f3041418a78b02b1cdb47f8337ef3df76bf | |
| parent | 6a66306cfc37a2e1cc1ffb331cf0c390dab1ad59 (diff) | |
| -rw-r--r-- | app_types/__init__.py | 2 | ||||
| -rwxr-xr-x | main.py | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app_types/__init__.py b/app_types/__init__.py index 73257a2..0ae1113 100644 --- a/app_types/__init__.py +++ b/app_types/__init__.py @@ -1,7 +1,7 @@ import fortnitepy import datetime -__season__ = 35 # must correlate to currently active season number +__season__ = 37 # must correlate to currently active season number class Duration(): duration_days: int @@ -8,6 +8,8 @@ from fortnite_client.fortnite_events import * from persistence import * from telegram_bot import * from telegram_bot.commands import * +import fortnitepy.http as http +from typing import * class FortniteStatusObserverImpl(FortniteStatusObserver): @@ -61,7 +63,18 @@ async def run_all(): run_fortnite_client(), run_record_stats()) +async def account_graphql_get_clients_external_auths(self, **kwargs: Any) -> dict: + return { + "myAccount": { + "externalAuths": [] + } + } + if __name__ == '__main__': + + # Workaround for not working GraphQL API + http.HTTPClient.account_graphql_get_clients_external_auths = account_graphql_get_clients_external_auths; + nest_asyncio.apply() loop = asyncio.get_event_loop() loop.run_until_complete(run_all()) |
