make sure we match a given model even when given a string

This commit is contained in:
Damien Elmes 2010-07-24 14:28:24 +09:00
parent a68366b5c4
commit 61a7d6d79e

View file

@ -396,6 +396,7 @@ class SyncTools(object):
def getModel(self, id, create=True):
"Return a local model with same ID, or create."
id = int(id)
for l in self.deck.models:
if l.id == id:
return l