mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
BE: logging fix and comments why eve_PendingAlertEmail not cleared
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user