Commit e0fed26a authored by Zachary Seguin's avatar Zachary Seguin

Get alerts in oldest to newest (best attempt)

parent a1c0bdda
......@@ -51,7 +51,7 @@ def to_utc(value):
return value.astimezone(pytz.utc)
alerts = AlertOld.query.all()
alerts = AlertOld.query.order_by(Alert.sent, Alert.superseded.desc(), Alert.processed).all()
for oa in alerts:
a = Alert()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment