Fix typo (#59)

This commit is contained in:
ajr-dev 2020-07-06 22:03:58 +02:00 committed by GitHub
parent 53a6d6f370
commit 636f8ca64b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -34,6 +34,6 @@ This system was built using *Python 3.7*, so we can only guarantee proper functi
$ pip3 install -r requirements.txt
# usage: mtgsqlive [-h] -i file -o file
$ python3 -m mtgsqlive -i /path/to/AllSets.json -o /path/to/output.sqlite
$ python3 -m mtgsqlive -i /path/to/AllPrintings.json -o /path/to/output.sqlite
```

View file

@ -188,7 +188,7 @@ def generate_sql_schema(json_data: Dict,
# https://www.mtgjson.com/files/AllPrintings.json
# to see the json structure
for setCode, setData in json_data.items():
# loop through the set properties, you can view the properties in:
# loop through the set properties
for setKey, setValue in setData.items():
if setKey == "translations":
setKey = "set_translations"