mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
always update buried/reviewEarly cards
This commit is contained in:
parent
3e2c150b17
commit
358b453906
1 changed files with 2 additions and 1 deletions
|
@ -847,9 +847,10 @@ group by cardTags.cardId""" % limit)
|
||||||
for pri in range(5):
|
for pri in range(5):
|
||||||
cs = [c[0] for c in cards if c[1] == pri]
|
cs = [c[0] for c in cards if c[1] == pri]
|
||||||
if cs:
|
if cs:
|
||||||
|
# catch review early & buried but not suspended
|
||||||
self.s.statement((
|
self.s.statement((
|
||||||
"update cards set priority = :pri %s where id in %s "
|
"update cards set priority = :pri %s where id in %s "
|
||||||
"and priority != :pri and priority >= 0") % (
|
"and priority != :pri and priority >= -2") % (
|
||||||
extra, ids2str(cs)), pri=pri, m=time.time())
|
extra, ids2str(cs)), pri=pri, m=time.time())
|
||||||
cnt = self.s.execute(
|
cnt = self.s.execute(
|
||||||
"update cards set isDue = 0 where type in (0,1,2) and "
|
"update cards set isDue = 0 where type in (0,1,2) and "
|
||||||
|
|
Loading…
Reference in a new issue