diff --git a/back/pialert.py b/back/pialert.py index b2f74a9d..b3d86d39 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -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): diff --git a/docker-compose.yml b/docker-compose.yml index 5821bf50..e4d25288 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: volumes: - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config # - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${APP_DATA_LOCATION}/pialert/db2:/home/pi/pialert/db + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes diff --git a/front/plugins.php b/front/plugins.php index aa3b8f82..dd28280c 100755 --- a/front/plugins.php +++ b/front/plugins.php @@ -23,7 +23,7 @@
-