From 33ec7ce1334b070a858934ff8d4a0906e58a2ba3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 2 Dec 2009 03:38:46 +0900 Subject: [PATCH] clarify comment --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index 4d4dffd37..213b24f31 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -359,8 +359,8 @@ class SyncTools(object): def bundleModel(self, id, updateModified): "Return a model representation suitable for transport." - # force load of lazy attributes mod = self.deck.s.query(Model).get(id) + # force load of lazy attributes mod.fieldModels; mod.cardModels m = self.dictFromObj(mod) m['fieldModels'] = [self.bundleFieldModel(fm) for fm in m['fieldModels']]