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