From 4ba707f6fe29bedbf8abab90a25e8768e5dd83cb Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 2 Aug 2023 06:33:05 +0200 Subject: [PATCH] Fix cypress test, remove unnecessary log --- cypress/fixtures/backtest/backtest_get_end.json | 1 + src/stores/ftbot.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/fixtures/backtest/backtest_get_end.json b/cypress/fixtures/backtest/backtest_get_end.json index a461d6f8..a95ba8f3 100644 --- a/cypress/fixtures/backtest/backtest_get_end.json +++ b/cypress/fixtures/backtest/backtest_get_end.json @@ -6,6 +6,7 @@ "progress": 1.0, "trade_count": null, "backtest_result": { + "metadata": {}, "strategy": { "SampleStrategy": { "trades": [ diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts index b4669a43..6cdb7454 100644 --- a/src/stores/ftbot.ts +++ b/src/stores/ftbot.ts @@ -905,7 +905,7 @@ export function createBotSubStore(botId: string, botName: string) { ...(backtestResult.metadata[key] ?? {}), strategyName: key, }; - console.log(key, strat, metadata); + // console.log(key, strat, metadata); const stratKey = `${key}_${strat.total_trades}_${strat.profit_total.toFixed(3)}`; const btResult: BacktestResultInMemory = {