fix: исключить phantom_cleanup из утреннего отчёта
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user