Skip to content

Commit

Permalink
Temporarly remove the "daily" feature for percentage because of a req…
Browse files Browse the repository at this point in the history
…uest error. Waiting for further releases to add it again
  • Loading branch information
theoelsti committed Apr 12, 2023
1 parent cc77fdf commit cdffe17
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/database/db_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit cdffe17

Please sign in to comment.