mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-12 13:11:47 -07:00
@@ -16,12 +16,10 @@ from const import applicationPath, logPath, apiPath, reportTemplatesPath
|
|||||||
from logger import mylog, Logger
|
from logger import mylog, Logger
|
||||||
from helper import generate_mac_links, \
|
from helper import generate_mac_links, \
|
||||||
removeDuplicateNewLines, \
|
removeDuplicateNewLines, \
|
||||||
timeNowDB, \
|
|
||||||
timeNowTZ, \
|
|
||||||
write_file, \
|
write_file, \
|
||||||
get_setting_value, \
|
get_setting_value
|
||||||
get_timezone_offset
|
|
||||||
from messaging.in_app import write_notification
|
from messaging.in_app import write_notification
|
||||||
|
from utils.datetime_utils import timeNowDB, get_timezone_offset
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
@@ -276,7 +274,7 @@ class NotificationInstance:
|
|||||||
# Clear the Pending Email flag from all events and devices
|
# Clear the Pending Email flag from all events and devices
|
||||||
def clearPendingEmailFlag(self):
|
def clearPendingEmailFlag(self):
|
||||||
|
|
||||||
# Clean Pending Alert Events
|
# Clean Pending Alert Events
|
||||||
self.db.sql.execute("""
|
self.db.sql.execute("""
|
||||||
UPDATE Devices SET devLastNotification = ?
|
UPDATE Devices SET devLastNotification = ?
|
||||||
WHERE devMac IN (
|
WHERE devMac IN (
|
||||||
|
|||||||
Reference in New Issue
Block a user