Include keys when processing josm presets

This commit is contained in:
Ansis Brammanis
2013-02-01 12:14:48 -05:00
parent 72536229c7
commit cb6ae40ef0

View File

@@ -22,9 +22,16 @@ def isfav(x):
return x in prefs
for item in items:
tags = []
for elem in item.getElementsByTagName('key'):
tags.append({
'key': elem.getAttribute('key'),
'value': elem.getAttribute('value')
})
jitem = {
"name": item.getAttribute('name'),
"type": item.getAttribute('type').split(','),
"tags": tags,
"main": []
}
if isfav(jitem['name']):