mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-14 14:11:26 -07:00
fixes
Some checks failed
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
Some checks failed
🐳 ⚠ docker-unsafe from next_release branch / docker_dev_unsafe (push) Has been cancelled
This commit is contained in:
@@ -817,13 +817,15 @@ def process_plugin_events(db, plugin, plugEventsArr):
|
||||
pluginObjects.append(tmpObjFromEvent)
|
||||
# update data of existing objects
|
||||
else:
|
||||
if tmpObjFromEvent.status == "watched-changed":
|
||||
changed_this_cycle.add(tmpObjFromEvent.idsHash)
|
||||
|
||||
index = 0
|
||||
for plugObj in pluginObjects:
|
||||
# find corresponding object for the event and merge
|
||||
if plugObj.idsHash == tmpObjFromEvent.idsHash:
|
||||
if (
|
||||
plugObj.status == "missing-in-last-scan"
|
||||
or tmpObjFromEvent.status == "watched-changed"
|
||||
):
|
||||
changed_this_cycle.add(tmpObjFromEvent.idsHash)
|
||||
pluginObjects[index] = combine_plugin_objects(
|
||||
plugObj, tmpObjFromEvent
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user