LeoTheHuman 7 лет назад
Родитель
Сommit
c67f4349be
2 измененных файлов: 6 добавлений и 1 удалений
  1. 5
    0
      make_data.sh
  2. 1
    1
      scripts/update_cards.py

+ 5
- 0
make_data.sh Просмотреть файл

#!/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 Просмотреть файл



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


languages = ['Russian'] languages = ['Russian']
ignore = [ ignore = [

Загрузка…
Отмена
Сохранить