add fix for AD issue

This commit is contained in:
Damien Elmes 2014-04-01 13:13:59 +09:00
parent 4a05c736fa
commit d56cf3c6b0

View File

@ -695,6 +695,10 @@ select id from notes where mid not in """ + ids2str(self.models.ids()))
self.remNotes(ids)
# for each model
for m in self.models.all():
for t in m['tmpls']:
if t['did'] == "None":
t['did'] = None
problems.append(_("Fixed AnkiDroid deck override bug."))
if m['type'] == MODEL_STD:
# model with missing req specification
if 'req' not in m: