mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add call to determine number of buttons to show; 2.5m -> 2.5mo
This commit is contained in:
parent
464eb2b684
commit
cfd4198503
3 changed files with 10 additions and 1 deletions
|
@ -53,6 +53,9 @@ class CramScheduler(Scheduler):
|
|||
else:
|
||||
return 1
|
||||
|
||||
def answerButtons(self, card):
|
||||
return 3
|
||||
|
||||
# Fetching
|
||||
##########################################################################
|
||||
|
||||
|
|
|
@ -77,6 +77,12 @@ order by due""" % self._groupLimit("rev"),
|
|||
def countIdx(self, card):
|
||||
return card.queue
|
||||
|
||||
def answerButtons(self, card):
|
||||
if card.queue == 2:
|
||||
return 4
|
||||
else:
|
||||
return 3
|
||||
|
||||
def onClose(self):
|
||||
"Unbury and remove temporary suspends on close."
|
||||
self.db.execute(
|
||||
|
|
|
@ -45,7 +45,7 @@ afterTimeTable = {
|
|||
|
||||
shortTimeTable = {
|
||||
"years": _("%sy"),
|
||||
"months": _("%sm"),
|
||||
"months": _("%smo"),
|
||||
"days": _("%sd"),
|
||||
"hours": _("%sh"),
|
||||
"minutes": _("%sm"),
|
||||
|
|
Loading…
Reference in a new issue