BE: logging fix and comments why eve_PendingAlertEmail not cleared
Some checks failed
Code checks / check-url-paths (push) Has been cancelled
Deploy MkDocs / deploy (push) Has been cancelled

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-01 17:58:22 +11:00
parent ff96d38339
commit e7ed9e0896
3 changed files with 33 additions and 9 deletions

View File

@@ -223,6 +223,15 @@ def get_notifications (db):
#-------------------------------------------------------------------------------
def skip_repeated_notifications (db):
"""
Skips sending alerts for devices recently notified.
Clears `eve_PendingAlertEmail` for events linked to devices whose last
notification time is within their `devSkipRepeated` interval.
Args:
db: Database object with `.sql.execute()` and `.commitDB()`.
"""
# Skip repeated notifications
# due strfime : Overflow --> use "strftime / 60"