aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 09:23:41 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 09:23:41 -0500
commit1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f (patch)
treea77cba644bcdc51beeb7815fba73e39c95583dac /scripts
parent6737e1b603a0f54d72458bb6332cf1e8b1b26dee (diff)
downloadorg-drill-1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f.tar.gz
org-drill-1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f.zip
refactor: extract org-drill--quality-percent helper for final-report
The quality-percentage formula (round (* 100 (cl-count Q qualities)) (max 1 (length qualities))) appeared six times in org-drill-final-report (once per recall quality 0..5), each time inlined verbatim. Extracted to a single helper. Six call sites collapse from three lines each to one. Behavior identical (the helper documents the (max 1 ...) divisor as an empty-list guard). Final-report drops from 95 lines to ~80.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions