Skip to content

Commit

Permalink
Update mtgo_tracker.py
Browse files Browse the repository at this point in the history
Associated Draft IDs: Change to only look at Cube/Booster Draft matches because MTGO doesn't save draft logs for Sealed.
  • Loading branch information
cderickson committed Feb 15, 2022
1 parent 487ffe1 commit 5680519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtgo_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5062,7 +5062,7 @@ def get_associated_draftid(mode):
date = df_drafts[(df_drafts.Draft_ID == i)].Date.tolist()[0]
draft_picks_dict[i] = (hero,date,set(df_picks[(df_picks.Draft_ID == i)].Card.unique()))

df_matches = df_matches[df_matches.Format.isin(INPUT_OPTIONS["Limited Formats"])]
df_matches = df_matches[df_matches.Limited_Format.isin(INPUT_OPTIONS["Cube Formats"] + INPUT_OPTIONS["Booster Draft Formats"])]
if mode == "NA":
df_matches = df_matches[(df_matches.Draft_ID == "NA")]
limited_matches = df_matches.Match_ID.tolist()
Expand Down

0 comments on commit 5680519

Please sign in to comment.