-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef8c056
commit 0a06fc7
Showing
159 changed files
with
971,021 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import json | ||
|
||
os.mkdir("new_cards") | ||
|
||
for file in os.listdir(): | ||
with open(file, encoding = "utf8") as f: | ||
x = json.load(f) | ||
for i in x: | ||
i["id"] = i["id"].replace("pt", "") | ||
i["legalities"] = [j for j in i["legalities"]] | ||
with open(f"new_cards/{file.replace('pt', '')}", "w", encoding = "utf8") as f: | ||
json.dump(x, f, indent = 4) | ||
print("Done:", file) |
Oops, something went wrong.