mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
space cards to next session if per-day off
This commit is contained in:
parent
b45f071581
commit
b235461d8b
1 changed files with 2 additions and 3 deletions
|
@ -890,7 +890,7 @@ where id in """
|
|||
self.s.statement("""
|
||||
update cards set
|
||||
combinedDue = (case
|
||||
when type = 1 then :daycut
|
||||
when type = 1 then :cut
|
||||
when type = 2 then :new
|
||||
end),
|
||||
modified = :now, isDue = 0
|
||||
|
@ -898,8 +898,7 @@ where id != :id and factId = :factId
|
|||
and combinedDue < :cut
|
||||
and type between 1 and 2""",
|
||||
id=card.id, now=time.time(), factId=card.factId,
|
||||
cut=self.dueCutoff, daycut=self.failedCutoff,
|
||||
new=new)
|
||||
cut=self.dueCutoff, new=new)
|
||||
# update local cache of seen facts
|
||||
self.spacedFacts[card.factId] = new
|
||||
|
||||
|
|
Loading…
Reference in a new issue