Create core_alphabetical.py
This commit is contained in:
parent
fd10676706
commit
a0b29fc448
3 changed files with 62 additions and 22 deletions
27
cubecobra_csv.py
Normal file
27
cubecobra_csv.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue