From 6178dd772851449ef559791c1b871da39948895b Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Sun, 12 Oct 2025 19:45:14 +0200 Subject: Switch season and enable workaround for not working graphql api --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index 46247b3..e029f62 100755 --- a/main.py +++ b/main.py @@ -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()) -- cgit v1.2.3