mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
bump deck mod time on suspend/unsuspend
This commit is contained in:
parent
a73e4757ad
commit
e2ad8a7ce3
1 changed files with 2 additions and 0 deletions
|
@ -903,6 +903,7 @@ group by cardTags.cardId""" % limit)
|
||||||
"update cards set isDue=0, priority=-3, modified=:t "
|
"update cards set isDue=0, priority=-3, modified=:t "
|
||||||
"where id in %s" % ids2str(ids), t=time.time())
|
"where id in %s" % ids2str(ids), t=time.time())
|
||||||
self.rebuildCounts(full=False)
|
self.rebuildCounts(full=False)
|
||||||
|
self.flushMod()
|
||||||
self.finishProgress()
|
self.finishProgress()
|
||||||
|
|
||||||
def unsuspendCards(self, ids):
|
def unsuspendCards(self, ids):
|
||||||
|
@ -912,6 +913,7 @@ group by cardTags.cardId""" % limit)
|
||||||
ids2str(ids), t=time.time())
|
ids2str(ids), t=time.time())
|
||||||
self.updatePriorities(ids)
|
self.updatePriorities(ids)
|
||||||
self.rebuildCounts(full=False)
|
self.rebuildCounts(full=False)
|
||||||
|
self.flushMod()
|
||||||
self.finishProgress()
|
self.finishProgress()
|
||||||
|
|
||||||
# Card/fact counts - all in deck, not just due
|
# Card/fact counts - all in deck, not just due
|
||||||
|
|
Loading…
Reference in a new issue