Fix issues with d439570
John Smith

John Smith commited on 2022-1 21:28:11
Showing 2 changed files, with 2 additions and 2 deletions.


* "again" actually gets the cards rescheduled as failures
(it didn't before)
* prompt text options put in correct order
... ...
@@ -122,7 +122,7 @@ elseif action == "r" then
122 122
                 ))
123 123
                 io.read("l")
124 124
                 io.write(string.format(
125
-                    "%s\nAgain / Hard / Easy / Good / Correction ",
125
+                    "%s\nAgain / Hard / Good / Easy / Correction ",
126 126
                     pst:gsub("%%A", (pr.ans:gsub("%%", "%%%%")))
127 127
                 ))
128 128
                 local resp = io.read("l")
... ...
@@ -7,7 +7,7 @@
7 7
     when reviewed at timestamp `revtime` with review success `revsucc`
8 8
 ]]
9 9
 local function update(prompt, revtime, revsucc)
10
-    if revsucc then
10
+    if revsucc and revsucc > 0 then
11 11
         local ad = revtime - prompt.time
12 12
         prompt.delay = 2.5 ^ revsucc * ad + math.max(40000 - 0.5 * ad, 0)
13 13
         prompt.succ = prompt.succ + 1
14 14