Created
August 8, 2019 09:56
-
-
Save vtbassmatt/490df124eff13ba401014f4ee69b7ca7 to your computer and use it in GitHub Desktop.
Helvault -> Archidekt converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Convert Helvault CSV into Archidekt text format." | |
# keywords: helvault, mtg, magic the gathering, archidekt, csv, convert | |
import csv | |
with open('helvault.csv') as csvfile: | |
rdr = csv.DictReader(csvfile) | |
for row in rdr: | |
record = f"{row['quantity']}x {row['name']} ({row['set_code']})" | |
if 'foil' in row['extras']: | |
record = record + " *F*" | |
print(record) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment