Fix indentation

This commit is contained in:
Adam Goldsmith 2017-08-03 18:15:09 -04:00
parent 48a98cdc0e
commit 0da1960ed6

View File

@ -127,19 +127,19 @@ def makeFaces(deckJson, outfile):
def makeCardJson(template, nickname, description, cardID):
card = template.copy()
card.update({"Nickname": nickname,
"Description": description,
"CardID": cardID})
"Description": description,
"CardID": cardID})
return card
def makeDoubleSidedCardJson(template, nickname, descriptionFront,
descriptionBack, cardID):
descriptionBack, cardID):
cardBack = makeCardJson(template, nickname, descriptionBack, cardID + 1)
card = template.copy()
card.update({"Nickname": nickname,
"Description": descriptionFront,
"CardID": cardID,
"States": {"2": cardBack}})
"Description": descriptionFront,
"CardID": cardID,
"States": {"2": cardBack}})
return card
def makeJson(deckJson, imgWidth, outfile):