Commit graph

22 commits

Author SHA1 Message Date
ZeldaZach
cd7e36886a frameeffects 2019-10-23 20:46:36 -04:00
Jason Addington
6fa3063e7b Fix errors causing data population to fail (#31)
* Modify card price reader to handle null price dictionaries (e.g. 10E Anaba Bodyguard)

* Add support for undocumented `subtypes`, `supertypes`, and `types` fields on `tokens`.
2019-10-12 12:58:18 -04:00
Zach H
9b18d52a5d
Mark's Changes for SQL (#29)
* Added new fields.

- Added `hasLeadershipSkills` and `hasNoDeckLimit`

* Update json2sql.py

* Changed for new build

* Export .sql file

* fixes
2019-09-30 00:23:06 -04:00
Zach Halpern
0d08bb8b92 translations may be non-existent
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-09-18 21:35:17 -04:00
Mark Cheese
9f575175bd Added New Fields. (#27)
* Added new fields.

- Added `hasLeadershipSkills` and `hasNoDeckLimit`

* Update json2sql.py

* Changed for new build
2019-09-16 18:02:35 -04:00
Mark Cheese
6b74f2baad Foreign keys and datatype improvements (#24) 2019-08-18 15:43:46 -04:00
Mark Cheese
67e14b6d16 Re-Adding "duelDeck" to tokens table. (#23)
* Updated fields for 4.5.0

* Update json2sql.py
2019-08-15 13:26:53 -04:00
Mark Cheese
1f5e035b07 Updated fields for 4.5.0 (#22) 2019-08-12 10:44:30 -04:00
Zach Halpern
11225ab7c9 Add ID key to each table for indexing, alphabetize fields, mark booleans, "blackify" and use f-strings if needed 2019-07-20 20:47:47 -04:00
Chris Mohr
91c6ea6ff7 Update json2sql.py (#21)
* Update json2sql.py

Add mtgArenaId, mtgoFoilId, mtgoId to cards table

* Add defaults for new columns
2019-07-20 18:39:27 -04:00
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