summaryrefslogtreecommitdiff
path: root/searxng_extra/update
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-10-11 11:45:26 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-10-11 11:45:26 +0200
commit9933155a2e8d8e2f3dc7280d909c6851b16ba863 (patch)
treeebad209541eae5852b476ecc60e91aecaa52fcc3 /searxng_extra/update
parent666cd1f6355a4ac72255637707a764235fd8c907 (diff)
downloadsearxng-9933155a2e8d8e2f3dc7280d909c6851b16ba863.tar.gz
searxng-9933155a2e8d8e2f3dc7280d909c6851b16ba863.zip
[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>
Diffstat (limited to 'searxng_extra/update')
-rwxr-xr-xsearxng_extra/update/update_osm_keys_tags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searxng_extra/update/update_osm_keys_tags.py b/searxng_extra/update/update_osm_keys_tags.py
index 1d691c194..72197498d 100755
--- a/searxng_extra/update/update_osm_keys_tags.py
+++ b/searxng_extra/update/update_osm_keys_tags.py
@@ -215,4 +215,4 @@ if __name__ == '__main__':
'tags': optimize_tags(get_tags()),
}
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)