Suspend prompts from review with negative delay
John Smith

John Smith commited on 2022-219 21:32:34
Showing 1 changed files, with 1 additions and 1 deletions.


If you set the `LastDelay` field of a prompt to a negative number
(currently only feasible by manually editing the deck Recfile),
the prompt will not be queued for review.
... ...
@@ -44,7 +44,7 @@ end
44 44
     checks (returns boolean) if `Prompt` `prompt` should be reviewed now
45 45
 ]]
46 46
 local function should(prompt)
47
-    return os.time() - (prompt.time or 0) >= (prompt.delay or 0)
47
+    return os.time() - (prompt.time or 0) >= (prompt.delay or 0) and prompt.delay >= 0
48 48
 end
49 49
 
50 50
 --[[
51 51