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",
|
"update cards set mod=?,usn=?,queue=type where queue = -2",
|
||||||
intTime(), self.col.usn())
|
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
|
# Rev/lrn/time daily stats
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ class Overview(object):
|
|||||||
elif url == "studymore":
|
elif url == "studymore":
|
||||||
self.onStudyMore()
|
self.onStudyMore()
|
||||||
elif url == "unbury":
|
elif url == "unbury":
|
||||||
self.mw.col.sched.unburyCards()
|
self.mw.col.sched.unburyCardsForDeck()
|
||||||
self.mw.reset()
|
self.mw.reset()
|
||||||
elif url.lower().startswith("http"):
|
elif url.lower().startswith("http"):
|
||||||
openLink(url)
|
openLink(url)
|
||||||
@ -76,7 +76,7 @@ class Overview(object):
|
|||||||
if key == "c" and not cram:
|
if key == "c" and not cram:
|
||||||
self.onStudyMore()
|
self.onStudyMore()
|
||||||
if key == "u":
|
if key == "u":
|
||||||
self.mw.col.sched.unburyCards()
|
self.mw.col.sched.unburyCardsForDeck()
|
||||||
self.mw.reset()
|
self.mw.reset()
|
||||||
|
|
||||||
# HTML
|
# HTML
|
||||||
|
Loading…
Reference in New Issue
Block a user