Report fix + plugin.sh work

This commit is contained in:
Jokob-sk
2023-08-19 17:39:38 +10:00
parent 5cc08030ce
commit 75c5ec1215
2 changed files with 3 additions and 6 deletions

View File

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