Skip to content

Commit

Permalink
Fix/respect max ivl when skip load balance
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Jul 9, 2024
1 parent 8f3e296 commit 82fb9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule/reschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def apply_fuzz(self, ivl):

if last_review + max_ivl < mw.col.sched.today:
# If the latest possible due date is in the past, skip load balance
return ivl
return min(ivl, max_ivl)

# Don't schedule the card in the past
min_ivl = max(min_ivl, mw.col.sched.today - last_review)
Expand Down

0 comments on commit 82fb9a7

Please sign in to comment.