Skip to content

Commit

Permalink
add ui_seen.json mailbox
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrErde committed May 2, 2024
1 parent f695f9b commit 3f08dd6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
python script/fetch_boards.py
python script/collection.py
python script/calender.py
python script/mailbox.py
- name: Update Game Data
run: |
Expand Down
1 change: 1 addition & 0 deletions all.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def version():
["script/fetch_boards.py"],
["script/collection.py"],
["script/calender.py"],
["script/mailbox.py"],
["misc/sort_characters.py"],
["misc/sort_boards.py"],
["misc/check.py"],
Expand Down
18 changes: 18 additions & 0 deletions script/mailbox.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import json

input_file_path = "gamedata/mailbox.json"
output_file_path = "upload/mailbox_data.json"

with open(input_file_path, "r") as input_file:
data = json.load(input_file)
entries = data.get(
"entries", {}
) # Get the "entries" dictionary from the loaded JSON data

# Extract names of each entry dictionary
entry_names = list(entries.keys())

output_data = {"entries": entry_names}

with open(output_file_path, "w") as output_file:
json.dump(output_data, output_file, indent=2)

0 comments on commit 3f08dd6

Please sign in to comment.