mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
clarify comment
This commit is contained in:
parent
ec9a7c3755
commit
33ec7ce133
1 changed files with 1 additions and 1 deletions
|
@ -359,8 +359,8 @@ class SyncTools(object):
|
||||||
|
|
||||||
def bundleModel(self, id, updateModified):
|
def bundleModel(self, id, updateModified):
|
||||||
"Return a model representation suitable for transport."
|
"Return a model representation suitable for transport."
|
||||||
# force load of lazy attributes
|
|
||||||
mod = self.deck.s.query(Model).get(id)
|
mod = self.deck.s.query(Model).get(id)
|
||||||
|
# force load of lazy attributes
|
||||||
mod.fieldModels; mod.cardModels
|
mod.fieldModels; mod.cardModels
|
||||||
m = self.dictFromObj(mod)
|
m = self.dictFromObj(mod)
|
||||||
m['fieldModels'] = [self.bundleFieldModel(fm) for fm in m['fieldModels']]
|
m['fieldModels'] = [self.bundleFieldModel(fm) for fm in m['fieldModels']]
|
||||||
|
|
Loading…
Reference in a new issue