Merge branch 'fix-edition-tracking' into 'master'

Update EditionTracking for new Edition file things

See merge request core-developers/forge!2626
This commit is contained in:
Michael Kamensky
2020-03-20 11:13:36 +00:00

View File

@@ -46,8 +46,11 @@ def initializeEditions():
metadata = True metadata = True
continue continue
if line.startswith("#"):
continue
if line: if line:
hasSetNumbers = line.split(" ", 1)[0].isdigit() hasSetNumbers = line[0].isdigit()
card = line.split(" ", 2 if hasSetNumbers else 1)[-1].rstrip() card = line.split(" ", 2 if hasSetNumbers else 1)[-1].rstrip()
if card not in mtgDataCards: if card not in mtgDataCards: