adding model predictions to dash (wip)

This commit is contained in:
Dobromir Popov
2025-06-25 02:59:16 +03:00
parent 11bbe8913a
commit 47173a8554
3 changed files with 268 additions and 9 deletions

View File

@ -22,7 +22,7 @@ class DashboardComponentManager:
return [html.P("No recent signals", className="text-muted small")]
signals = []
for decision in recent_decisions[-10:]: # Last 10 signals
for decision in reversed(recent_decisions[-10:]): # Last 10 signals, reversed
# Handle both TradingDecision objects and dictionary formats
if hasattr(decision, 'timestamp'):
# This is a TradingDecision object (dataclass)