Skip to content

Commit

Permalink
If there are no events yet we need to create dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Jun 21, 2024
1 parent 11e3013 commit 9723253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate-maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,6 @@
os.makedirs(maps_path + "/kml", exist_ok=True)
kml.save(maps_path + "/kml/" + date + ".kml")

os.makedirs(maps_path, exist_ok=True)
with open(maps_path + "/dates.json", "w", encoding="utf-8") as f:
f.write(json.dumps(sorted(list(dates.keys()))))

0 comments on commit 9723253

Please sign in to comment.