mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 23:13:42 +00:00
Include keys when processing josm presets
This commit is contained in:
@@ -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']):
|
||||
|
||||
Reference in New Issue
Block a user