mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't generate cards if the question is blank, again
This commit is contained in:
parent
7e6f4907b0
commit
621d11a6da
1 changed files with 2 additions and 0 deletions
|
@ -1346,8 +1346,10 @@ and due < :now""", now=time.time())
|
||||||
try:
|
try:
|
||||||
if format % local == format % empty:
|
if format % local == format % empty:
|
||||||
ok = False
|
ok = False
|
||||||
|
break
|
||||||
except (KeyError, TypeError, ValueError):
|
except (KeyError, TypeError, ValueError):
|
||||||
ok = False
|
ok = False
|
||||||
|
break
|
||||||
if ok or type == "a" and cardModel.allowEmptyAnswer:
|
if ok or type == "a" and cardModel.allowEmptyAnswer:
|
||||||
models.append(cardModel)
|
models.append(cardModel)
|
||||||
return models
|
return models
|
||||||
|
|
Loading…
Reference in a new issue