mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
add study/cram
This commit is contained in:
parent
ccf3e0ae0d
commit
9d12bc54b9
2 changed files with 5 additions and 5 deletions
|
|
@ -59,10 +59,12 @@ class GroupSel(QDialog):
|
||||||
aqt.appWiki + "GroupSelection")))
|
aqt.appWiki + "GroupSelection")))
|
||||||
|
|
||||||
def onStudy(self):
|
def onStudy(self):
|
||||||
print "study"
|
self.mw.deck.reset()
|
||||||
|
self.mw.moveToState("review")
|
||||||
|
|
||||||
def onCram(self):
|
def onCram(self):
|
||||||
print "cram"
|
self.mw.deck.cramGroups(self.mw.deck.qconf['groups'])
|
||||||
|
self.mw.moveToState("review")
|
||||||
|
|
||||||
def onSelectAll(self):
|
def onSelectAll(self):
|
||||||
for i in self.items:
|
for i in self.items:
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class Overview(object):
|
||||||
self.mw.deck.reset()
|
self.mw.deck.reset()
|
||||||
self.mw.moveToState("review")
|
self.mw.moveToState("review")
|
||||||
elif url == "cram":
|
elif url == "cram":
|
||||||
self.mw.deck.cramGroups(self.mw.deck.qconf['revGroups'])
|
self.mw.deck.cramGroups(self.mw.deck.qconf['groups'])
|
||||||
self.mw.moveToState("review")
|
self.mw.moveToState("review")
|
||||||
elif url == "opts":
|
elif url == "opts":
|
||||||
self.mw.onStudyOptions()
|
self.mw.onStudyOptions()
|
||||||
|
|
@ -149,8 +149,6 @@ $(function () {
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
def _ovCounts(self):
|
def _ovCounts(self):
|
||||||
oldNew = self.mw.deck.qconf['newGroups']
|
|
||||||
oldRev = self.mw.deck.qconf['revGroups']
|
|
||||||
# we have the limited count already
|
# we have the limited count already
|
||||||
selcnt = self.mw.deck.sched.selCounts()
|
selcnt = self.mw.deck.sched.selCounts()
|
||||||
allcnt = self.mw.deck.sched.allCounts()
|
allcnt = self.mw.deck.sched.allCounts()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue