Create core_alphabetical.py

This commit is contained in:
henriquenakashima 2020-12-01 20:48:05 -05:00
parent fd10676706
commit a0b29fc448
3 changed files with 62 additions and 22 deletions

27
cubecobra_csv.py Normal file
View file

@ -0,0 +1,27 @@
# TODO: Make this an actual API
EXPECTED_HEADER = [
'Name',
'CMC',
'Type',
'Color',
'Set',
'Collector Number',
'Rarity',
'Color Category',
'Status',
'Finish',
'Maybeboard',
'Image URL',
'Image Back URL',
'Tags',
'Notes',
'MTGO ID'
]
COLUMNS = {column_name: i for i, column_name in enumerate(EXPECTED_HEADER)}
def assert_header(header_line):
assert header_line == EXPECTED_HEADER