Fix strategy records list showing empty rows after hub close.
Records were still in the database but CSS clipping hid row text; restore visible summary styling and symbol fallback from snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -323,7 +323,13 @@ def enrich_strategy_snapshot_row(row: dict) -> dict:
|
||||
d["filter_pnl"] = "flat"
|
||||
else:
|
||||
d["filter_pnl"] = "unknown"
|
||||
sym = (d.get("symbol") or d.get("exchange_symbol") or "").strip()
|
||||
snap_sym = ""
|
||||
if isinstance(snap, dict):
|
||||
snap_sym = (snap.get("symbol") or snap.get("exchange_symbol") or "").strip()
|
||||
sym = (d.get("symbol") or d.get("exchange_symbol") or snap_sym or "").strip()
|
||||
if sym:
|
||||
d["symbol"] = d.get("symbol") or sym
|
||||
d["exchange_symbol"] = d.get("exchange_symbol") or sym
|
||||
d["filter_symbol"] = sym.upper().split("/")[0].split(":")[0] if sym else ""
|
||||
closed = (d.get("closed_at") or d.get("created_at") or "").strip()
|
||||
d["sort_ts"] = closed
|
||||
|
||||
Reference in New Issue
Block a user