changeset 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 cca538f795de
children 09f5ac48ffe3 e3dddf65fa88
files sat/plugins/plugin_exp_events.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)