add study/cram

This commit is contained in:
Damien Elmes 2011-03-29 12:34:06 +09:00
parent ccf3e0ae0d
commit 9d12bc54b9
2 changed files with 5 additions and 5 deletions

View file

@ -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:

View file

@ -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()