Store set type
This commit is contained in:
parent
4a0fc6e539
commit
1d9723fb1f
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ def update_scryfall(ctx, filename):
|
||||||
try:
|
try:
|
||||||
card = tutor.scryfall.to_card(card_json).unwrap()
|
card = tutor.scryfall.to_card(card_json).unwrap()
|
||||||
await tutor.database.store_set(
|
await tutor.database.store_set(
|
||||||
cursor, card_json["set"].upper(), card_json["set_name"]
|
cursor,
|
||||||
|
card_json["set"].upper(),
|
||||||
|
card_json["set_type"],
|
||||||
|
card_json["set_name"],
|
||||||
)
|
)
|
||||||
await tutor.database.store_card(cursor, card)
|
await tutor.database.store_card(cursor, card)
|
||||||
await tutor.database.store_price(cursor, today, card)
|
await tutor.database.store_price(cursor, today, card)
|
||||||
|
|
Loading…
Reference in a new issue