diff options
author | Thanos Apollo <[email protected]> | 2024-03-08 08:03:04 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-08 08:03:37 +0200 |
commit | 5e071a813391267b7ebcfdae15862b7c75e51e14 (patch) | |
tree | 52a545019a34cb3545b1424478ede197c65e327e /gnosis.el | |
parent | 41e5afe96c8c573e409fc446bc51337a20e86f68 (diff) |
gnosis-dashboard: Display total note number as integer
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1577,9 +1577,10 @@ to improve readability." (defun gnosis-dashboard-output-deck (id) "Output contents from deck with ID, formatted for gnosis dashboard." - (cl-loop for item in (append (gnosis-select '[name failure-factor ef-increase ef-decrease ef-threshold] + (cl-loop for item in (append (gnosis-select + '[name failure-factor ef-increase ef-decrease ef-threshold initial-interval] 'decks `(= id ,id) t) - (gnosis-dashboard-deck-note-count id)) + (mapcar 'string-to-number (gnosis-dashboard-deck-note-count id))) when (listp item) do (cl-remove-if (lambda (x) (and (vectorp x) (zerop (length x)))) item) collect (prin1-to-string item))) @@ -1591,7 +1592,8 @@ to improve readability." ("ef-increase" 15 t) ("ef-decrease" 15 t) ("ef-threshold" 15 t) - ("Notes" 10 t)]) + ("Initial Interval" 20 t) + ("Total Notes" 10 t)]) (tabulated-list-init-header) (let ((max-id (apply 'max (gnosis-select 'id 'decks '1=1 t)))) (setq tabulated-list-entries |