fix: Correctly assign alerts_last_channel_results in dashboard controls
CI / lint-test-build (push) Failing after 13s
CI / lint-test-build (push) Failing after 13s
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user