Skip to content

Commit

Permalink
Update reschedule.py
Browse files Browse the repository at this point in the history
  • Loading branch information
user1823 authored Jul 7, 2024
1 parent b10580e commit f30356b
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,7 +87,7 @@ 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 last_review + max_ivl <= mw.col.sched.today:
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 All @@ -103,7 +103,7 @@ def apply_fuzz(self, ivl):

min_workload = math.inf
best_ivl = max_ivl
step = (max_ivl - min_ivl) // 100 + 1
step = 1 + (max_ivl - min_ivl) // 100

if self.easy_days_review_ratio == 0:
obey_easy_days = True
Expand Down

0 comments on commit f30356b

Please sign in to comment.