fix rendering of question/answer column in browse screen
This commit is contained in:
parent
c8b794e6cc
commit
58c643d5bf
@ -143,8 +143,13 @@ def render_card(
|
||||
|
||||
def templates_for_card(card: Card, browser: bool) -> Tuple[str, str]:
|
||||
template = card.template()
|
||||
q, a = browser and ("bqfmt", "bafmt") or ("qfmt", "afmt")
|
||||
return template.get(q), template.get(a) # type: ignore
|
||||
if browser:
|
||||
q, a = template.get("bqfmt"), template.get("bafmt")
|
||||
else:
|
||||
q, a = None, None
|
||||
q = q or template.get("qfmt")
|
||||
a = a or template.get("afmt")
|
||||
return q, a # type: ignore
|
||||
|
||||
|
||||
def fields_for_rendering(col: anki.storage._Collection, card: Card, note: Note):
|
||||
|
Loading…
Reference in New Issue
Block a user