Skip to content

Commit

Permalink
fixed migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Dec 20, 2023
1 parent 78a33e6 commit 8a3896e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/migrate_with_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
for user in new_dict["app_state"]["cardchain"]["users"]:
if "voteRights" in user:
del user["voteRights"]
user["boosterPacks"] = [pack for pack in user["boosterPacks"] if pack["setId"] not in ["0", "2"]] # turn of later

with open(file_path_new, "w") as file:
json.dump(new_dict, file, indent=2)

0 comments on commit 8a3896e

Please sign in to comment.