Record notification count and show in [stats] tab (#2150)

This commit is contained in:
dgtlmoon
2024-02-02 09:12:44 +01:00
committed by GitHub
parent 4ee9fa79e1
commit 3b16b19a94
3 changed files with 9 additions and 0 deletions

View File

@@ -150,6 +150,10 @@ class update_worker(threading.Thread):
queued = False
if n_object and n_object.get('notification_urls'):
queued = True
count = watch.get('notification_alert_count', 0) + 1
self.datastore.update_watch(uuid=watch_uuid, update_obj={'notification_alert_count': count})
self.queue_notification_for_watch(notification_q=self.notification_q, n_object=n_object, watch=watch)
return queued