Skip to content

Feature: function to update locations.json #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jimjimrao
Copy link

Description

Add functionality to update locations.json when generate_locations_md.py is ran

Changes Made

  • Introduced CompactEncoder class for custom JSON encoding to be similar to original locations.json
  • Added output_to_json function to write locations data to a JSON file
  • Modified get_locations function to call output_to_json

Testing

I ran the utils/generate_locations_md.py script, which successfully generated a new utils/locations.json file containing the updated location data.

Screenshots

The diff without considering white spaces looks like this:
image

jimjimrao added 2 commits July 4, 2024 20:18
- called whenever generate_locations_md.py is ran
- added encoder to match format of original locations.json
@jimjimrao jimjimrao changed the title Feature/update locations json Feature: function to update locations.json Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant