mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
model deleting should use the string id
This commit is contained in:
parent
c6c6af4328
commit
f8eefe5ee1
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class ModelManager(object):
|
|||
select id from cards where fid in (select id from facts where mid = ?)""",
|
||||
m['id']))
|
||||
# then the model
|
||||
del self.models[m['id']]
|
||||
del self.models[str(m['id'])]
|
||||
self.save()
|
||||
# GUI should ensure last model is not deleted
|
||||
if current:
|
||||
|
|
Loading…
Reference in a new issue