Plugins 0.2 - UI fixes

This commit is contained in:
Jokob-sk
2023-02-20 20:45:18 +11:00
parent 647013f3ff
commit 43d5c51e7c
4 changed files with 59 additions and 48 deletions

View File

@@ -2440,8 +2440,8 @@ def send_notifications ():
changedPorts_json_struc = None
# DEBUG - print number of rows updated
mylog('info', [' Notifications: ', sql.rowcount])
# DEBUG - print number of rows updated
mylog('info', ['[', timeNow(), '] Notifications: ', sql.rowcount])
# Commit changes
commitDB()
@@ -3888,8 +3888,6 @@ def process_plugin_events(plugin):
pluginEvents[index].status = "watched-not-changed"
index += 1
# Merge existing plugin objects with newly discovered ones and update existin ones with new values
for eveObj in pluginEvents:
@@ -3935,14 +3933,6 @@ def process_plugin_events(plugin):
commitDB()
# TODO HERE test on empty DB as well
# collect notifications here as well?
# delete the events here or later? probably later - on notification fail
# so the events can be reanalyzed and notification re-send
# enable form controls on table columns
#-------------------------------------------------------------------------------
class plugin_object_class:
def __init__(self, plugin, objDbRow):