unbury from overview shouldn't unbury all decks
This commit is contained in:
parent
511bde0396
commit
c1827e0561
@ -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
|
||||
##########################################################################
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user