diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 09:30:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 09:30:38 -0500 |
| commit | 066cd82302f76f21b3409a00aabe0d8de1d9e34e (patch) | |
| tree | 6f4a068cc3b147bfc54fbf053e746b3e09e221a3 /scripts | |
| parent | ffca04d90e94c5d4e40139282811630028d586ce (diff) | |
| download | org-drill-066cd82302f76f21b3409a00aabe0d8de1d9e34e.tar.gz org-drill-066cd82302f76f21b3409a00aabe0d8de1d9e34e.zip | |
refactor: extract org-drill--quality-failed-p predicate
The check (<= quality org-drill-failure-quality) appeared in five
places: SM2/SM5/Simple8 schedulers, smart-reschedule, and the
main org-drill-entries loop body. Each call site does different
things on failure (reset interval, push to again-entries, etc.) so
only the predicate was duplicated.
Extracted as org-drill--quality-failed-p with a docstring naming
the threshold and the role. Five inlined comparisons collapse to
five named predicate calls.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
