BE: chore datetime_utils

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-05 16:14:03 +11:00
parent 57096a9258
commit 286d5555d2

View File

@@ -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 (