diff options
author | Thanos Apollo <[email protected]> | 2024-05-14 06:51:06 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-05-14 06:51:06 +0300 |
commit | 5f51fa5efe1f78b5eda98145c17c8af9372d855a (patch) | |
tree | b7ca4e08d8b6347ffe475fb4ef65477af7801875 | |
parent | b6cb4ea7de676e07b6b3752dc2a65a5f23f535d5 (diff) |
gnosis-get-note-ff: Use deck-ff over note-ff
-rw-r--r-- | gnosis.el | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -501,12 +501,12 @@ If NAME is t, return name of deck." deck-ff)) (defun gnosis-get-note-ff (id) - "Return failure factor for note ID.." + "Return failure factor for note ID." (let ((deck-ff (gnosis-get-deck-ff (gnosis-get-deck--note id))) (note-ff (gnosis-get 'ff 'review `(= id ,id)))) - deck-ff - ;; (max deck-ff note-ff) - )) + (if (and deck-ff (> deck-ff note-ff)) + deck-ff + note-ff))) (cl-defun gnosis-suspend-note (id) "Suspend note with ID." @@ -1873,7 +1873,8 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard." ("notes" (gnosis-dashboard-output-notes (gnosis-collect-note-ids))) ("decks" (gnosis-dashboard-output-decks)) ("tags" (gnosis-dashboard-output-notes (gnosis-collect-note-ids :tags t))) - ("search" (gnosis-dashboard-output-notes (gnosis-collect-note-ids :query (read-string "Search for note: ")))))) + ("search" (gnosis-dashboard-output-notes + (gnosis-collect-note-ids :query (read-string "Search for note: ")))))) (tabulated-list-print t))) (defun gnosis-db-init () |