Fix listing of alerts
This commit is contained in:
@@ -561,7 +561,7 @@ class Tracker(Extension):
|
||||
for alert in alerts:
|
||||
history = self._history_manager.get_history(alert.flavor, alert.region)
|
||||
trigger = await history.find_update_trigger_from_alert(alert)
|
||||
if trigger.last_trigger is not None:
|
||||
if trigger.last_alerting is not None:
|
||||
alert_str = (
|
||||
f"Last Alerting Price Value: {format(trigger.last_alerting[1], ",")}\n"
|
||||
f"Last Alerting Time: <t:{int(trigger.last_alerting[0].timestamp())}:F> local time\n"
|
||||
|
||||
Reference in New Issue
Block a user