From 75c5ec1215699d0470179b42d4e1edc106beccdf Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 19 Aug 2023 17:39:38 +1000 Subject: [PATCH] Report fix + plugin.sh work --- front/report.php | 4 ++-- pialert/plugin.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/front/report.php b/front/report.php index 8aba9ce1..499af5ce 100755 --- a/front/report.php +++ b/front/report.php @@ -32,9 +32,9 @@ Error"; diff --git a/pialert/plugin.py b/pialert/plugin.py index c9a228f5..75febd48 100755 --- a/pialert/plugin.py +++ b/pialert/plugin.py @@ -616,7 +616,7 @@ def process_plugin_events(db, plugin, pluginsState): """, objects_to_insert ) - # Bulk insert events + # Bulk insert events (insert only events if they are to be reported on) if events_to_insert: sql.executemany( """ @@ -628,9 +628,6 @@ def process_plugin_events(db, plugin, pluginsState): """, events_to_insert ) - # Delete old events - sql.execute('DELETE FROM Plugins_Events where Plugin = ?', (pluginPref,)) - # Commit changes to the database db.commitDB()