mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix allow empty answer problem in sync
This commit is contained in:
parent
f1397fcd86
commit
ded420dd9e
1 changed files with 2 additions and 0 deletions
|
@ -379,6 +379,8 @@ class SyncTools(object):
|
|||
ids = []
|
||||
for cm in cms:
|
||||
local = self.getCardModel(model, cm)
|
||||
if not 'allowEmptyAnswer' in cm or cm['allowEmptyAnswer'] is None:
|
||||
cm['allowEmptyAnswer'] = True
|
||||
self.applyDict(local, cm)
|
||||
ids.append(cm['id'])
|
||||
for cm in model.cardModels:
|
||||
|
|
Loading…
Reference in a new issue