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("""
|
self.s.statement("""
|
||||||
update cards set
|
update cards set
|
||||||
combinedDue = (case
|
combinedDue = (case
|
||||||
when type = 1 then :daycut
|
when type = 1 then :cut
|
||||||
when type = 2 then :new
|
when type = 2 then :new
|
||||||
end),
|
end),
|
||||||
modified = :now, isDue = 0
|
modified = :now, isDue = 0
|
||||||
|
@ -898,8 +898,7 @@ where id != :id and factId = :factId
|
||||||
and combinedDue < :cut
|
and combinedDue < :cut
|
||||||
and type between 1 and 2""",
|
and type between 1 and 2""",
|
||||||
id=card.id, now=time.time(), factId=card.factId,
|
id=card.id, now=time.time(), factId=card.factId,
|
||||||
cut=self.dueCutoff, daycut=self.failedCutoff,
|
cut=self.dueCutoff, new=new)
|
||||||
new=new)
|
|
||||||
# update local cache of seen facts
|
# update local cache of seen facts
|
||||||
self.spacedFacts[card.factId] = new
|
self.spacedFacts[card.factId] = new
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue