Skip to content

Commit

Permalink
Merge pull request #1747 from cliffmeyers
Browse files Browse the repository at this point in the history
Apply consisting sorting to markers JS files in genPOI
  • Loading branch information
CounterPillow committed Apr 12, 2020
2 parents 7af188d + 80e45c4 commit dc6f8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overviewer_core/aux_files/genPOI.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,11 @@ def keyfunc(x):

with open(os.path.join(destdir, "markersDB.js"), "w") as output:
output.write("var markersDB=")
json.dump(markers, output, indent=2)
json.dump(markers, output, sort_keys=True, indent=2)
output.write(";\n")
with open(os.path.join(destdir, "markers.js"), "w") as output:
output.write("var markers=")
json.dump(marker_groups, output, indent=2)
json.dump(marker_groups, output, sort_keys=True, indent=2)
output.write(";\n")
with open(os.path.join(destdir, "baseMarkers.js"), "w") as output:
output.write("overviewer.util.injectMarkerScript('markersDB.js');\n")
Expand Down

0 comments on commit dc6f8cf

Please sign in to comment.