From 4d5dc0cb4856d2294d2b9ff9c369423d9b10de5b Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Tue, 27 Aug 2024 15:03:14 +0200 Subject: [PATCH] [Requirements] bump --- octobot/commands.py | 2 +- octobot/community/authentication.py | 4 +++- octobot/constants.py | 1 + requirements.txt | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/octobot/commands.py b/octobot/commands.py index 1f472f34c..59f9fbe1e 100644 --- a/octobot/commands.py +++ b/octobot/commands.py @@ -241,7 +241,7 @@ def select_forced_profile_if_any(config, forced_profile, logger) -> bool: if profile.profile_id == forced_profile \ or profile.origin_url == forced_profile \ or profile.name == forced_profile: - logger.info(f"Selecting forced profile {profile.name} (from identified by{forced_profile})") + logger.info(f"Selecting forced profile {profile.name} (identified by {forced_profile})") config.select_profile(profile.profile_id) return True logger.warning(f"Forced profile not found in available profiles ({forced_profile})") diff --git a/octobot/community/authentication.py b/octobot/community/authentication.py index b06cbb984..6bf57c1f3 100644 --- a/octobot/community/authentication.py +++ b/octobot/community/authentication.py @@ -555,7 +555,9 @@ async def fetch_private_data(self, reset=False): mqtt_uuid = self.get_saved_mqtt_device_uuid() except errors.NoBotDeviceError: pass - if reset or (not self.user_account.community_package_urls or not mqtt_uuid): + if constants.DISABLE_COMMUNITY_EXTENSIONS_CHECK: + self.logger.info("Community extension check is disabled") + elif reset or (not self.user_account.community_package_urls or not mqtt_uuid): self.successfully_fetched_tentacles_package_urls = False packages, package_urls, fetched_mqtt_uuid = await self._fetch_package_urls(mqtt_uuid) self.successfully_fetched_tentacles_package_urls = True diff --git a/octobot/constants.py b/octobot/constants.py index 47d0350eb..089568236 100644 --- a/octobot/constants.py +++ b/octobot/constants.py @@ -73,6 +73,7 @@ COMMUNITY_EXTENSIONS_CHECK_ENDPOINT_KEY = os.getenv( "COMMUNITY_EXTENSIONS_CHECK_ENDPOINT_KEY", "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBsaWN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", "false") COMMUNITY_EXTENSIONS_PACKAGES_IDENTIFIER = ".cloud" COMMUNITY_FETCH_TIMEOUT = 30 diff --git a/requirements.txt b/requirements.txt index 6c0fa4c73..5c29a02e5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Drakkar-Software requirements OctoBot-Commons==1.9.55 -OctoBot-Trading==2.4.105 +OctoBot-Trading==2.4.107 OctoBot-Evaluators==1.9.6 OctoBot-Tentacles-Manager==2.9.16 OctoBot-Services==1.6.17