model deleting should use the string id

This commit is contained in:
Damien Elmes 2011-11-07 18:38:48 +09:00
parent c6c6af4328
commit f8eefe5ee1

View file

@ -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: