fix: Correctly assign alerts_last_channel_results in dashboard controls
CI / lint-test-build (push) Failing after 13s

This commit is contained in:
2026-06-01 15:45:21 +02:00
parent 6c7dd0a715
commit c3c524724e
+1 -3
View File
@@ -316,9 +316,7 @@ def _dashboard_controls(request: Request) -> dict[str, object]:
"alerts_last_success_at": str(alert_status.get("last_success_at") or ""), "alerts_last_success_at": str(alert_status.get("last_success_at") or ""),
"alerts_last_event_title": last_event_title, "alerts_last_event_title": last_event_title,
"alerts_last_error": str(alert_status.get("last_error") or ""), "alerts_last_error": str(alert_status.get("last_error") or ""),
"alerts_last_channel_results": [ "alerts_last_channel_results": alerts_last_channel_results,
str(item) for item in cast(list[object], alert_status.get("last_channel_results", []))
],
"tradable_pairs_display": tpd, "tradable_pairs_display": tpd,
"tradable_pairs_value": ", ".join(ctl.tradable_pairs), "tradable_pairs_value": ", ".join(ctl.tradable_pairs),
"strategy_mode": ctl.strategy_mode, "strategy_mode": ctl.strategy_mode,