mirror of https://github.com/searxng/searxng.git
[fix] update_osm_keys_tags.py: sort JSON dump
To get meaningful diff, the keys in JSON dump needs to be sorted. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
666cd1f635
commit
9933155a2e
|
@ -215,4 +215,4 @@ if __name__ == '__main__':
|
||||||
'tags': optimize_tags(get_tags()),
|
'tags': optimize_tags(get_tags()),
|
||||||
}
|
}
|
||||||
with open(get_osm_tags_filename(), 'w', encoding="utf8") as f:
|
with open(get_osm_tags_filename(), 'w', encoding="utf8") as f:
|
||||||
json.dump(result, f, indent=4, ensure_ascii=False)
|
json.dump(result, f, indent=4, ensure_ascii=False, sort_keys=True)
|
||||||
|
|
Loading…
Reference in New Issue