mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
FrontSide on upgrade, allNames() in models
This commit is contained in:
parent
0345ad7e2e
commit
8f89ea57f5
2 changed files with 4 additions and 1 deletions
|
|
@ -115,6 +115,9 @@ class ModelManager(object):
|
||||||
"Get all models."
|
"Get all models."
|
||||||
return self.models.values()
|
return self.models.values()
|
||||||
|
|
||||||
|
def allNames(self):
|
||||||
|
return [m['name'] for m in self.all()]
|
||||||
|
|
||||||
def byName(self, name):
|
def byName(self, name):
|
||||||
"Get model with NAME."
|
"Get model with NAME."
|
||||||
for m in self.models.values():
|
for m in self.models.values():
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,7 @@ order by ordinal""", mid)):
|
||||||
# q fields now in a
|
# q fields now in a
|
||||||
if not hideq:
|
if not hideq:
|
||||||
conf['afmt'] = (
|
conf['afmt'] = (
|
||||||
conf['qfmt'] + "\n\n<hr id=answer>\n\n" + conf['afmt'])
|
"{{FrontSide}}\n\n<hr id=answer>\n\n" + conf['afmt'])
|
||||||
tmpls.append(conf)
|
tmpls.append(conf)
|
||||||
return tmpls
|
return tmpls
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue