mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make sure we don't 'fix' req for cloze type
This commit is contained in:
parent
ef9157a8ee
commit
c3300f733a
1 changed files with 5 additions and 5 deletions
|
@ -694,12 +694,12 @@ select id from notes where mid not in """ + ids2str(self.models.ids()))
|
|||
self.remNotes(ids)
|
||||
# for each model
|
||||
for m in self.models.all():
|
||||
if m['type'] == MODEL_STD:
|
||||
# model with missing req specification
|
||||
if 'req' not in m:
|
||||
self.models._updateRequired(m)
|
||||
problems.append(_("Fixed note type: %s") % m['name'])
|
||||
# cards with invalid ordinal
|
||||
if m['type'] == MODEL_STD:
|
||||
ids = self.db.list("""
|
||||
select id from cards where ord not in %s and nid in (
|
||||
select id from notes where mid = ?)""" %
|
||||
|
|
Loading…
Reference in a new issue