From cdffe17eea1167b5a95edf17fc172e2c8ad8c41d Mon Sep 17 00:00:00 2001 From: Laptop developper Date: Wed, 12 Apr 2023 23:24:10 +0200 Subject: [PATCH] Temporarly remove the "daily" feature for percentage because of a request error. Waiting for further releases to add it again --- src/database/db_functions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/database/db_functions.py b/src/database/db_functions.py index f73cf6a..09e6c5f 100644 --- a/src/database/db_functions.py +++ b/src/database/db_functions.py @@ -220,7 +220,6 @@ def get_today_sum_profit(): SUM(CASE WHEN profit > 0 THEN profit ELSE 0 END) as total_positive_profit, SUM(CASE WHEN profit < 0 THEN profit ELSE 0 END) as total_losses FROM daily_trades - WHERE closed < UNIX_TIMESTAMP(DATE_SUB(CURDATE(), INTERVAL 1 DAY) + INTERVAL 21 HOUR) * 1000; """) return cursor.fetchone()