aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 05:12:25 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 05:12:25 -0500
commit88b7fb502c0317ac29b3c7f3eb3f4c0617c87c02 (patch)
treef9cf670b800d2e303c26277e437d6f9cbfce0178 /scripts
parent8bbb6d30529abd5350884e822b308da917966e73 (diff)
downloadorg-drill-88b7fb502c0317ac29b3c7f3eb3f4c0617c87c02.tar.gz
org-drill-88b7fb502c0317ac29b3c7f3eb3f4c0617c87c02.zip
fix: default DRILL_LEITNER_BOX to 0 in leitner-rebox
When the property is absent, org-entry-get returns nil and string-to-number errors with wrong-type-argument. Reachable when a user removes the property mid-session, or when a Leitner-tagged entry is rebox'd before its DRILL_LEITNER_BOX has been set. Wrapped the org-entry-get with (or ... "0"). Box 0 makes the rating semantics still sensible: a downgrade stays at 0, a promotion goes to 1.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions