Fix indentation
This commit is contained in:
parent
48a98cdc0e
commit
0da1960ed6
@ -127,19 +127,19 @@ def makeFaces(deckJson, outfile):
|
|||||||
def makeCardJson(template, nickname, description, cardID):
|
def makeCardJson(template, nickname, description, cardID):
|
||||||
card = template.copy()
|
card = template.copy()
|
||||||
card.update({"Nickname": nickname,
|
card.update({"Nickname": nickname,
|
||||||
"Description": description,
|
"Description": description,
|
||||||
"CardID": cardID})
|
"CardID": cardID})
|
||||||
return card
|
return card
|
||||||
|
|
||||||
def makeDoubleSidedCardJson(template, nickname, descriptionFront,
|
def makeDoubleSidedCardJson(template, nickname, descriptionFront,
|
||||||
descriptionBack, cardID):
|
descriptionBack, cardID):
|
||||||
cardBack = makeCardJson(template, nickname, descriptionBack, cardID + 1)
|
cardBack = makeCardJson(template, nickname, descriptionBack, cardID + 1)
|
||||||
|
|
||||||
card = template.copy()
|
card = template.copy()
|
||||||
card.update({"Nickname": nickname,
|
card.update({"Nickname": nickname,
|
||||||
"Description": descriptionFront,
|
"Description": descriptionFront,
|
||||||
"CardID": cardID,
|
"CardID": cardID,
|
||||||
"States": {"2": cardBack}})
|
"States": {"2": cardBack}})
|
||||||
return card
|
return card
|
||||||
|
|
||||||
def makeJson(deckJson, imgWidth, outfile):
|
def makeJson(deckJson, imgWidth, outfile):
|
||||||
|
Reference in New Issue
Block a user