From 4d20ae37217bc32bdad2c5d0de4cddc39647e371 Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Fri, 4 Aug 2023 15:48:18 -0700 Subject: [PATCH] (fix) add . to cp --- .gitignore | 4 ++++ pages/bot_orchestration/app.py | 4 ++-- ui_components/bot_performance_card.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 499ae86..3362017 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,7 @@ dmypy.json # Pyre type checker .pyre/ + +# Optimize studies and strategies +quants_lab/optimizations/* +quants_lab/strategy/experiments/* \ No newline at end of file diff --git a/pages/bot_orchestration/app.py b/pages/bot_orchestration/app.py index b67f646..5d48b9b 100644 --- a/pages/bot_orchestration/app.py +++ b/pages/bot_orchestration/app.py @@ -50,8 +50,8 @@ def manage_broker_container(): def launch_new_bot(): bot_name = f"hummingbot-{st.session_state.new_bot_name.target.value}" docker_manager.create_hummingbot_instance(instance_name=bot_name, - base_conf_folder=f"{constants.BOTS_FOLDER}/master_bot_conf/", - target_conf_folder=f"{constants.BOTS_FOLDER}/{bot_name}") + base_conf_folder=f"{constants.BOTS_FOLDER}/master_bot_conf/.", + target_conf_folder=f"{constants.BOTS_FOLDER}/{bot_name}/.") def update_containers_info(docker_manager): diff --git a/ui_components/bot_performance_card.py b/ui_components/bot_performance_card.py index 6eaceea..6b4579e 100644 --- a/ui_components/bot_performance_card.py +++ b/ui_components/bot_performance_card.py @@ -38,7 +38,7 @@ class BotPerformanceCard(Dashboard.Item): st.session_state.active_bots[bot_name]["selected_strategy"] = strategies[0] with mui.Card(key=self._key, - sx={"display": "flex", "flexDirection": "column", "borderRadius": 2, "overflow": "hidden"}, + sx={"display": "flex", "flexDirection": "column", "borderRadius": 2, "overflow": "auto"}, elevation=2): color = "green" if bot_config["is_running"] else "red" subheader_message = "Running " + st.session_state.active_bots[bot_name]["selected_strategy"] if bot_config["is_running"] else "Stopped"