fix exporting of models into apkg

This commit is contained in:
Damien Elmes 2012-04-12 00:15:56 +09:00
parent 2f2a483a49
commit 875a417346

View file

@ -164,7 +164,7 @@ class AnkiExporter(Exporter):
self.dst.sched.forgetCards(cids)
# models
for m in self.src.models.all():
if m['id'] in mids:
if int(m['id']) in mids:
self.dst.models.update(m)
# decks
if not self.did: