mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix bug where nondue review cards in cram were treated as due
This commit is contained in:
parent
782dd53d16
commit
c2370fe3ef
1 changed files with 6 additions and 3 deletions
|
@ -809,9 +809,12 @@ order by c.mod""" % ((self.dayCutoff-86400)*1000)
|
|||
# everything in the new queue
|
||||
queue = "0"
|
||||
else:
|
||||
# due reviews stay in the review queue
|
||||
queue = "(case when type=2 and (odue or due) <= %d then 2 else 0 end)"
|
||||
queue %= self.today
|
||||
# due reviews stay in the review queue. careful: can't use
|
||||
# "odid or did", as sqlite converts to boolean
|
||||
queue = """
|
||||
(case when type=2 and (case when odue then odue <= %d else due <= %d end)
|
||||
then 2 else 0 end)"""
|
||||
queue %= (self.today, self.today)
|
||||
self.col.db.executemany("""
|
||||
update cards set
|
||||
odid = (case when odid then odid else did end),
|
||||
|
|
Loading…
Reference in a new issue