# HG changeset patch # User Goffi # Date 1592573897 -7200 # Node ID 9a174abafdeea06afd184867cc2e02cb0e0cb1bb # Parent f17379123571ca067c41500c9413ad028cb525cd plugin list of interests: added `id` to data + fixed key conflict: fixed conflict between interest namespace and files namespace. diff -r f17379123571 -r 9a174abafdee sat/plugins/plugin_exp_list_of_interest.py --- a/sat/plugins/plugin_exp_list_of_interest.py Fri Jun 19 15:37:02 2020 +0200 +++ b/sat/plugins/plugin_exp_list_of_interest.py Fri Jun 19 15:38:17 2020 +0200 @@ -190,7 +190,7 @@ def _listInterestsSerialise(self, interests_data): interests = [] for item_elt in interests_data[0]: - interest_data = {} + interest_data = {"id": item_elt['id']} interest_elt = item_elt.interest if interest_elt.hasAttribute('namespace'): interest_data['namespace'] = interest_elt.getAttribute('namespace') @@ -219,7 +219,7 @@ }) if elt.hasAttribute('type'): interest_data['subtype'] = elt['type'] - for attr in ('namespace', 'path'): + for attr in ('files_namespace', 'path'): if elt.hasAttribute(attr): interest_data[attr] = elt[attr] else: