mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
show ordinal in cloze template name
This commit is contained in:
parent
91e59dc35b
commit
fd2851ac1e
1 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,7 @@ from anki.db import *
|
|||
from anki.hooks import runHook, addHook, remHook
|
||||
from aqt.webview import AnkiWebView
|
||||
from aqt.toolbar import Toolbar
|
||||
from anki.consts import *
|
||||
|
||||
COLOUR_SUSPENDED = "#fffff0"
|
||||
COLOUR_MARKED = "#eeeeff"
|
||||
|
@ -205,7 +206,10 @@ class DataModel(QAbstractTableModel):
|
|||
f = c.note()
|
||||
return self.formatQA(f.fields[self.col.models.sortIdx(f.model())])
|
||||
elif type == "template":
|
||||
return c.template()['name']
|
||||
t = c.template()['name']
|
||||
if c.model()['type'] == MODEL_CLOZE:
|
||||
t += " (%d)" % (c.ord+1)
|
||||
return t
|
||||
elif type == "cardDue":
|
||||
return self.nextDue(c, index)
|
||||
elif type == "noteCrt":
|
||||
|
|
Loading…
Reference in a new issue