mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
make sure to remove inactive templates properly
This commit is contained in:
parent
0032dd39c9
commit
cd76706a2f
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ and ord = ? limit 1""", m['id'], t['ord']):
|
|||
remove.append(t)
|
||||
del t['actv']
|
||||
for r in remove:
|
||||
m['tmpls'].remove(t)
|
||||
d.models.remTemplate(m, r)
|
||||
d.models.save(m)
|
||||
|
||||
# Post-schema upgrade
|
||||
|
|
Loading…
Reference in a new issue