DOCS+FE+BE: cleanup, SSE wait for app initialization #1440

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-02-01 10:36:31 +11:00
parent f52a7c112a
commit 4c9c89050b
5 changed files with 28 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ from db.db_helper import print_table_schema
from utils.datetime_utils import timeNowDB
from logger import mylog, Logger
from messaging.reporting import skip_repeated_notifications
from messaging.in_app import update_unread_notifications_count
# Make sure log level is initialized correctly
@@ -104,6 +105,9 @@ def process_scan(db):
# 🐛 CurrentScan DEBUG: comment out below when debugging to keep the CurrentScan table after restarts/scan finishes
db.sql.execute("DELETE FROM CurrentScan")
# re-broadcast unread notifiation count to update FE
update_unread_notifications_count()
# Commit changes
db.commitDB()