open-spaced-repetition / fsrs4anki-helper

An Anki add-on that supports Postpone & Advance & Load Balance & Easy Days & Disperse Siblings & Flatten
https://ankiweb.net/shared/info/759844606
MIT License
215 stars 18 forks source link

Prevent load balancer from scheduling cards in the past #432

Closed user1823 closed 4 months ago

user1823 commented 4 months ago

https://github.com/open-spaced-repetition/fsrs4anki-helper/pull/428#issuecomment-2211740347

user1823 commented 4 months ago

I think that I must have missed removing some references to the allow_to_past variable. Please check that before merging.

user1823 commented 4 months ago

Also, I need some help. I get this error when using Reschedule all cards on my collection with the code in this PR.

  File "C:\Users\User\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 117, in apply_fuzz
    for check_ivl in reversed(range(min_ivl, max_ivl + step, step)):
ValueError: range() arg 3 must not be zero