Fix listing of alerts
This commit is contained in:
@@ -8,7 +8,7 @@ from interactions.api.events import Startup
|
||||
from token_bot.token_database import database as pdb
|
||||
from token_bot.token_database import database as tdb
|
||||
|
||||
VERSION = "0.9.10"
|
||||
VERSION = "0.9.11"
|
||||
|
||||
|
||||
class Core(Extension):
|
||||
|
||||
@@ -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