mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-25 18:40:32 -04:00
refactor redundant joins, bugfix event insert
This commit is contained in:
1 parent
9d1fccfe29
commit
400edd35d1
4 files changed
+7
-10
No files matched your search
+1
-1
@@ -747,7 +747,7 @@ def process_plugin_events(db, plugin, pluginsState, plugEventsArr):
|
||||
sqlParams.append(tuple(tmpList))
|
||||
|
||||
# Generate the SQL INSERT query using the collected information.
|
||||
q = f'INSERT into {dbTable} ({columnsStr}) VALUES ({valuesStr})'
|
||||
q = f'INSERT OR IGNORE INTO {dbTable} ({columnsStr}) VALUES ({valuesStr})'
|
||||
|
||||
# Log a debug message showing the generated SQL query for mapping.
|
||||
mylog('debug', ['[Plugins] SQL query for mapping: ', q])
|
||||
|
||||
Reference in new issue
Block a user