Commit graph

12 commits

Author SHA1 Message Date
Mark Cheese
a5a65d3fe9 Some Minor Fixes and Improvements (#20)
* Quality of life change.

* Updated json2sql.py

- Added "prices" table.
- Tidy'd up: fixed some minor formatting, and made some small improvements to log output.
- Added option of using "AllSetFiles" for input, simply provide a path to the directory as the input.
- Added auto-increment "id" column as primary key to relational tables for easy referencing.

To-Do:
- allow .zip and other compressed input
- Standardize formatting (Escaping characters, quote types/positioning, line breaks, etc.)

* Update mtgsqlive/json2sql.py

Co-Authored-By: Zach H <zahalpern+github@gmail.com>

* Put json2sql.py back where it belongs!

* Delete json2sql.py

* Applied suggestions and cleaned up a little more.
2019-07-12 22:49:12 -04:00
Zach H
f3c23eec7e
Update json2sql.py 2019-07-07 23:05:52 -04:00
Maciej Sumiński
fb2674ff37 'Cards' table structure update to 4.4.2 + one bug fix (#19)
* Fix sqlite3.connect() parameter type

Function sqlite3.connect() expects a string, but output_file is a
PosixPath variable.

* Update 'cards' table structure to match version 4.4.2
2019-06-27 07:53:11 -04:00
Zach H
08bf857c70
License change approved. MTGJSON moving from GPLv3->MIT. 2019-06-22 23:59:05 -04:00
Jason Addington
0bd4089efc Implement set_translation import (#17)
* Replace colons with hyphens in log filenames to be compatible with Windows.

* Always open the json file as UTF8 encoding as the default on Windows is different.

* Add set_translation data import.
2019-06-12 15:02:25 -04:00
ZeldaZach
1de6e57e41 add foreign only 2019-05-31 13:33:29 -04:00
Zach Halpern
3b0bac4ed7 4.4.0 compatibility
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-04-28 10:11:28 -04:00
Zach Halpern
2374181fd9 Add new missing fields from recent updates
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-04-21 23:59:37 -04:00
Zach Halpern
eba5743aa8 primary key needs length
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-01-18 03:39:33 -05:00
Fryyyyy
c3add103cd Make fast (#11) 2019-01-17 18:59:26 -05:00
Zach H
99d6c40d4c MTGJSONv4 Support (#10)
* initial pass

* Improve speeds, fix rulings

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* tox

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* Readme, main, and updates

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* fixes to params

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* alpha

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* Add tokens

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-01-17 17:04:42 -05:00
Zach Halpern
bc189765e4 Restart repo 2019-01-17 11:38:30 -05:00