mirror of
https://github.com/ankitects/anki.git
synced 2025-11-15 00:57:13 -05: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:
|
else:
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
def answerButtons(self, card):
|
||||||
|
return 3
|
||||||
|
|
||||||
# Fetching
|
# Fetching
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ order by due""" % self._groupLimit("rev"),
|
||||||
def countIdx(self, card):
|
def countIdx(self, card):
|
||||||
return card.queue
|
return card.queue
|
||||||
|
|
||||||
|
def answerButtons(self, card):
|
||||||
|
if card.queue == 2:
|
||||||
|
return 4
|
||||||
|
else:
|
||||||
|
return 3
|
||||||
|
|
||||||
def onClose(self):
|
def onClose(self):
|
||||||
"Unbury and remove temporary suspends on close."
|
"Unbury and remove temporary suspends on close."
|
||||||
self.db.execute(
|
self.db.execute(
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ afterTimeTable = {
|
||||||
|
|
||||||
shortTimeTable = {
|
shortTimeTable = {
|
||||||
"years": _("%sy"),
|
"years": _("%sy"),
|
||||||
"months": _("%sm"),
|
"months": _("%smo"),
|
||||||
"days": _("%sd"),
|
"days": _("%sd"),
|
||||||
"hours": _("%sh"),
|
"hours": _("%sh"),
|
||||||
"minutes": _("%sm"),
|
"minutes": _("%sm"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue