Closed lamelizard closed 1 year ago
Hmm, this check was not enough, after converting it, i used tokens.py, but was running into the same issue. Are where cards without ID?
D:\GitHub\mtg-proxies>python tokens.py decks\shrines_conv.txt
Parsing decklist ...
Found 118 cards in total with 118 unique cards.
Traceback (most recent call last):
File "D:\GitHub\mtg-proxies\tokens.py", line 45, in <module>
tokens = get_tokens(decklist)
^^^^^^^^^^^^^^^^^^^^
File "D:\GitHub\mtg-proxies\tokens.py", line 16, in get_tokens
for card_print in scryfall.get_cards(oracle_id=card["oracle_id"]):
~~~~^^^^^^^^^^^^^
File "D:\GitHub\mtg-proxies\mtgproxies\decklists\decklist.py", line 25, in __getitem__
return self.card[key]
~~~~~~~~~^^^^^
KeyError: 'oracle_id'
Seems the way, printing the current map in recommend_print reveals that it is Propaganda:
1 Propaganda // Propaganda (SLD) 381
Which seems to be the only double sided print of that card:
https://scryfall.com/card/sld/381/propaganda-propaganda
which may expain the issue?
Note:
1 Propaganda (SLD) 381
is not found
Yes, it was an error with reversible cards which have a separate oracle id for each face. Should be fixed now! Thanks for bringing this to my attention.
As there is currently no format to specify which face you want, for now both sides are printed. Hope that works for you.
Hello, thank you for the software. I am not sure if just my decklist had an issue, or something was missing elsewhere. Anyways, I got a keyerror and had to patch in a keycheck to scryfall.py:
CommandLine:
DeckList, I hope the formating was not the issue and the issue is reproduceable, but maybe it has nothing to do with the list: