📚 Better notification docs + exclude New Device eve if disabled Alert Events

This commit is contained in:
jokob-sk
2024-10-28 11:17:34 +11:00
parent bb33ab16fd
commit 10ed589cd5
9 changed files with 19 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ def get_notifications (db):
# Disable reporting on events for devices where reporting is disabled based on the MAC address
sql.execute ("""UPDATE Events SET eve_PendingAlertEmail = 0
WHERE eve_PendingAlertEmail = 1 AND eve_EventType not in ('Device Down', 'Down Reconnected') AND eve_MAC IN
WHERE eve_PendingAlertEmail = 1 AND eve_EventType not in ('Device Down', 'Down Reconnected', 'New Device' ) AND eve_MAC IN
(
SELECT dev_MAC FROM Devices WHERE dev_AlertEvents = 0
)""")