From 61a7d6d79eba6828169c0adf2a40640745b9ccc9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Jul 2010 14:28:24 +0900 Subject: [PATCH] make sure we match a given model even when given a string --- anki/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/sync.py b/anki/sync.py index c803f4f52..abc99ba27 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -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