fix: исключить phantom_cleanup из утреннего отчёта

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-10 13:33:45 +10:00
co-authored by Claude Opus 4.6
parent e4b1587375
commit a28cf7adba
+1 -1
View File
@@ -272,7 +272,7 @@ def format_morning_report(cfg, conn) -> str:
rows = conn.execute(
"SELECT ticker, direction, entry_price, exit_price, exit_reason, pnl_net, pnl_pct "
"FROM positions WHERE status='closed' AND exit_date >= ? "
"AND exit_reason NOT IN ('live_buy_failed', 'manual_reset') "
"AND exit_reason NOT IN ('live_buy_failed', 'manual_reset', 'phantom_cleanup') "
"ORDER BY id DESC", (since[:10],)
).fetchall()