mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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:
|
||||
if format % local == format % empty:
|
||||
ok = False
|
||||
break
|
||||
except (KeyError, TypeError, ValueError):
|
||||
ok = False
|
||||
break
|
||||
if ok or type == "a" and cardModel.allowEmptyAnswer:
|
||||
models.append(cardModel)
|
||||
return models
|
||||
|
|
Loading…
Reference in a new issue