mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
don't allow mature delay over a week for now; fix delay being reset to 0
This commit is contained in:
parent
386de21f87
commit
ca9aeaa086
1 changed files with 1 additions and 3 deletions
|
@ -3642,10 +3642,8 @@ update cards set type = type - 3 where type between 0 and 2 and priority = -3"""
|
||||||
# - new delay1 handling
|
# - new delay1 handling
|
||||||
if deck.delay0 == deck.delay1:
|
if deck.delay0 == deck.delay1:
|
||||||
deck.delay1 = 0
|
deck.delay1 = 0
|
||||||
elif deck.delay1 >= 28800:
|
|
||||||
deck.delay1 = 1
|
|
||||||
else:
|
else:
|
||||||
deck.delay1 = 0
|
deck.delay1 = min(deck.delay1, 7)
|
||||||
# unsuspend buried/rev early - can remove priorities in the future
|
# unsuspend buried/rev early - can remove priorities in the future
|
||||||
ids = deck.s.column0(
|
ids = deck.s.column0(
|
||||||
"select id from cards where type > 2 or priority between -2 and -1")
|
"select id from cards where type > 2 or priority between -2 and -1")
|
||||||
|
|
Loading…
Reference in a new issue