diff sat/plugins/plugin_exp_events.py @ 3708:09112b1c3e05

plugin events: store `interest_id` in data: ID of the item in list of interest is needed to correctly modify (and notably retract) an event.
author Goffi <goffi@goffi.org>
date Fri, 12 Nov 2021 17:18:23 +0100
parents be6d91572633
children 09f5ac48ffe3
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_events.py	Fri Nov 12 17:16:40 2021 +0100
+++ b/sat/plugins/plugin_exp_events.py	Fri Nov 12 17:18:23 2021 +0100
@@ -428,6 +428,7 @@
                 )
             else:
                 timestamp, data = self._parseEventElt(event_elt)
+                data["interest_id"] = item["id"]
                 events.append((timestamp, data))
         defer.returnValue(events)