don't generate cards if the question is blank, again

This commit is contained in:
Damien Elmes 2010-10-29 01:05:33 +09:00
parent 7e6f4907b0
commit 621d11a6da

View file

@ -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