From f176093a07f3695803a8bff3324e4321e2bb8c66 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Tue, 8 Oct 2024 14:57:16 +0200 Subject: [PATCH 1/4] [WebInterface] don't block for 120s on version check fetch issues --- Services/Interfaces/web_interface/api/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Interfaces/web_interface/api/metadata.py b/Services/Interfaces/web_interface/api/metadata.py index 1e85aa91b..0f9b771a3 100644 --- a/Services/Interfaces/web_interface/api/metadata.py +++ b/Services/Interfaces/web_interface/api/metadata.py @@ -43,7 +43,7 @@ async def fetch_upgrade_version(): updater = octobot_api.get_updater() return await updater.get_latest_version() if updater and await updater.should_be_updated() else None - return json.dumps(interfaces.run_in_bot_main_loop(fetch_upgrade_version())) + return json.dumps(interfaces.run_in_bot_main_loop(fetch_upgrade_version(), timeout=5)) @blueprint.route("/user_feedback") From 3c6624acdb7db64badb237fe038641f9ee390685 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Tue, 8 Oct 2024 15:50:17 +0200 Subject: [PATCH 2/4] [WebInterface] add warning when no trading mode in backtesting --- Services/Interfaces/web_interface/templates/backtesting.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Services/Interfaces/web_interface/templates/backtesting.html b/Services/Interfaces/web_interface/templates/backtesting.html index 26e283060..45294cdac 100644 --- a/Services/Interfaces/web_interface/templates/backtesting.html +++ b/Services/Interfaces/web_interface/templates/backtesting.html @@ -101,6 +101,10 @@

Backtesting can't be used in backtesting. Select another profile or trading mode to run a backtesting. + {% elif not activated_trading_mode %} + {% endif %}