Include success-count in prioritisation
John Smith

John Smith commited on 2023-63 12:34:34
Showing 1 changed files, with 1 additions and 1 deletions.


When the review procedure sorts those prompts which need review,
it will now take into account the number of successful reviews
for each prompt, lowering the priority of more-successful, more-studied
prompts.
... ...
@@ -48,7 +48,7 @@ local function should(prompt)
48 48
     local ct = os.time()
49 49
     if not prompt.delay then return -1 end
50 50
     if prompt.delay >= 0 and ct - (prompt.time or 0) >= (prompt.delay or 0) then
51
-        return (ct - (prompt.time or 0)) / prompt.delay / prompt.ease + 0.2 * math.random()
51
+        return (ct - (prompt.time or 0)) / prompt.delay / prompt.ease / (prompt.succ + 1) + 0.2 * math.random()
52 52
     end
53 53
     return false
54 54
 end
55 55