unbury from overview shouldn't unbury all decks

This commit is contained in:
Damien Elmes 2013-09-11 15:33:27 +09:00
parent 511bde0396
commit c1827e0561
2 changed files with 7 additions and 2 deletions

View File

@ -139,6 +139,11 @@ order by due""" % self._deckLimit(),
"update cards set mod=?,usn=?,queue=type where queue = -2",
intTime(), self.col.usn())
def unburyCardsForDeck(self):
self.col.db.execute(
"update cards set mod=?,usn=?,queue=type where queue = -2 and did in %s"
% ids2str(self.col.decks.active()), intTime(), self.col.usn())
# Rev/lrn/time daily stats
##########################################################################

View File

@ -57,7 +57,7 @@ class Overview(object):
elif url == "studymore":
self.onStudyMore()
elif url == "unbury":
self.mw.col.sched.unburyCards()
self.mw.col.sched.unburyCardsForDeck()
self.mw.reset()
elif url.lower().startswith("http"):
openLink(url)
@ -76,7 +76,7 @@ class Overview(object):
if key == "c" and not cram:
self.onStudyMore()
if key == "u":
self.mw.col.sched.unburyCards()
self.mw.col.sched.unburyCardsForDeck()
self.mw.reset()
# HTML