mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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 = ?)""",
|
select id from cards where fid in (select id from facts where mid = ?)""",
|
||||||
m['id']))
|
m['id']))
|
||||||
# then the model
|
# then the model
|
||||||
del self.models[m['id']]
|
del self.models[str(m['id'])]
|
||||||
self.save()
|
self.save()
|
||||||
# GUI should ensure last model is not deleted
|
# GUI should ensure last model is not deleted
|
||||||
if current:
|
if current:
|
||||||
|
|
Loading…
Reference in a new issue