Skip to content

Commit

Permalink
Add some gaming categories
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-y committed Jul 3, 2024
1 parent 0813937 commit 059d89c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/directory_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@
with open('_music-genres_comms.json', 'w') as json_file:
json.dump(communities['Art']['Music 🎵']['Genres'], json_file, indent=2)

# Export Gaming to file
with open('_gaming-platforms_comms.json', 'w') as json_file:
json.dump(communities['Gaming']['Platforms']['None'], json_file, indent=2)
with open('_gaming-genres_comms.json', 'w') as json_file:
json.dump(communities['Gaming']['Genres']['None'], json_file, indent=2)


# Export a complete dump of the directory to a JSON file
with open('directory.json', 'w') as json_file:
json.dump(communities, json_file, indent=2)

0 comments on commit 059d89c

Please sign in to comment.