mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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")))
|
||||
|
||||
def onStudy(self):
|
||||
print "study"
|
||||
self.mw.deck.reset()
|
||||
self.mw.moveToState("review")
|
||||
|
||||
def onCram(self):
|
||||
print "cram"
|
||||
self.mw.deck.cramGroups(self.mw.deck.qconf['groups'])
|
||||
self.mw.moveToState("review")
|
||||
|
||||
def onSelectAll(self):
|
||||
for i in self.items:
|
||||
|
|
|
@ -49,7 +49,7 @@ class Overview(object):
|
|||
self.mw.deck.reset()
|
||||
self.mw.moveToState("review")
|
||||
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")
|
||||
elif url == "opts":
|
||||
self.mw.onStudyOptions()
|
||||
|
@ -149,8 +149,6 @@ $(function () {
|
|||
##########################################################################
|
||||
|
||||
def _ovCounts(self):
|
||||
oldNew = self.mw.deck.qconf['newGroups']
|
||||
oldRev = self.mw.deck.qconf['revGroups']
|
||||
# we have the limited count already
|
||||
selcnt = self.mw.deck.sched.selCounts()
|
||||
allcnt = self.mw.deck.sched.allCounts()
|
||||
|
|
Loading…
Reference in a new issue