-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but some comments would help ;)
else: | ||
emItem = etree.SubElement(emItems, 'emItem', | ||
blockID=item['blockID']) | ||
blockID=item.get('blockID', item['id'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have emItem.set('id'
a few lines below, it's hard to follow without comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this comment, the item id is the guid (add-on id not the kinto blocklist id)
amo2kinto/exporter.py
Outdated
# Group by and keep the biggest blockID in the XML file. | ||
if current_blockID > previous_blockID: | ||
emItem.attrib['blockID'] = item['blockID'] | ||
if 'blockID' in item: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small comment explaining that in the new system blockID
is not mandatory, but id
is.
No description provided.