Skip to content

Commit

Permalink
Update reschedule.py
Browse files Browse the repository at this point in the history
  • Loading branch information
user1823 committed Jul 7, 2024
1 parent 9c21905 commit bb57d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schedule/reschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def apply_fuzz(self, ivl):
# Load balance
due = self.card.odue if self.card.odid else self.card.due
last_review = get_last_review_date(self.card)

if self.apply_easy_days:
if due > last_review + max_ivl + 2:
current_ivl = due - last_review
min_ivl, max_ivl = get_fuzz_range(
current_ivl, self.elapsed_days, current_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
Expand Down

0 comments on commit bb57d5c

Please sign in to comment.