mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
Tagger is preliminarily done
May need further adjustments or testing, but seems to be working the way I want it to at this time. Fixed a typo in the determine_commanders() function of setup that would drop elligible planeswalkers and artifacts instead of dropping inelligible ones
This commit is contained in:
parent
4a3d9c423e
commit
3344218410
2 changed files with 161 additions and 60 deletions
4
setup.py
4
setup.py
|
|
@ -83,7 +83,7 @@ def determine_commanders():
|
|||
or 'Legendary Planeswalker' in row['type']):
|
||||
if 'Legendary Artifact Creature' not in row['type']:
|
||||
if pd.notna(row['text']):
|
||||
if f'{row['name']} can be your commander' in row['text']:
|
||||
if f'{row['name']} can be your commander' not in row['text']:
|
||||
rows_to_drop.append(index)
|
||||
for illegal_set in non_legel_sets:
|
||||
if illegal_set in row['printings']:
|
||||
|
|
@ -284,4 +284,4 @@ def setup():
|
|||
|
||||
#regenerate_csvs_all()
|
||||
#regenerate_csv_by_color('white')
|
||||
#determine_commanders()
|
||||
determine_commanders()
|
||||
Loading…
Add table
Add a link
Reference in a new issue