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:
mwisnowski 2024-12-17 15:10:52 -08:00
parent 4a3d9c423e
commit 3344218410
2 changed files with 161 additions and 60 deletions

View file

@ -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()