diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-27 21:28:20 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-27 21:28:20 -0500 |
| commit | 6e3f2d278d9598c6838428ee510445f51888bb30 (patch) | |
| tree | 98ca78149861191d32012a4148b1ce239cf08a75 /scripts/coverage-summary.py | |
| parent | eaa0a53f807b44d8a4bf72f3de562b011f69756e (diff) | |
| download | org-drill-6e3f2d278d9598c6838428ee510445f51888bb30.tar.gz org-drill-6e3f2d278d9598c6838428ee510445f51888bb30.zip | |
refactor: take card-state in org-drill-determine-next-interval-sm2
Stage 3 of #147. sm2 now takes (state quality) instead of seven positional args, binding the recall fields from the struct at the top so the algorithm body is unchanged. The smart-reschedule and hypothetical-next-review-date call sites pass the state they already hold, which drops the per-branch accessor unpacking.
I kept the return as the existing positional list rather than restructuring it too. The goal is reducing the input signature, and changing the return shape would force the shared test extractors and every return-read to change for no real gain. A testutil adapter, test-scheduler--call-sm2, packs positional args into the struct, so the test call sites stay readable as the documented algorithm inputs and the migration is a one-symbol rename per call.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions
