Browse Source

make_data

master
LeoTheHuman 7 years ago
parent
commit
c67f4349be
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      make_data.sh
  2. 1
    1
      scripts/update_cards.py

+ 5
- 0
make_data.sh View File

@@ -0,0 +1,5 @@
#!/bin/sh
curl http://media.wizards.com/2018/downloads/MagicCompRules%2020181005.txt | iconv -f cp1251 -t utf8 > cr.txt
mkdir -p data
python3 scripts/update_cards.py
python3 scripts/update_cr.py

+ 1
- 1
scripts/update_cards.py View File

@@ -32,7 +32,7 @@ def download():

# Download and save for the future
cards = download()
save('data/cards.json', cards)
#save('data/cards.json', cards)

languages = ['Russian']
ignore = [

Loading…
Cancel
Save