John Smith commited on 2022-248 22:15:35
Showing 1 changed files, with 6 additions and 2 deletions.
| ... | ... |
@@ -287,6 +287,7 @@ elseif action == "r" then |
| 287 | 287 |
local climt = io.read("l")
|
| 288 | 288 |
local climn = tonumber(climt) |
| 289 | 289 |
if climn then |
| 290 |
+ local lrc = 0 |
|
| 290 | 291 |
local editqueue = {}
|
| 291 | 292 |
local start = os.time() |
| 292 | 293 |
-- review prompts in this session's set |
| ... | ... |
@@ -314,6 +315,9 @@ elseif action == "r" then |
| 314 | 315 |
if sc == -1 then |
| 315 | 316 |
table.insert(editqueue, ip[1]) |
| 316 | 317 |
else |
| 318 |
+ if sc == 0 then |
|
| 319 |
+ lrc = lrc + 1 |
|
| 320 |
+ end |
|
| 317 | 321 |
review.update(deck[ip[1]][ip[2]], st, sc, config) |
| 318 | 322 |
end |
| 319 | 323 |
clear() |
| ... | ... |
@@ -326,8 +330,8 @@ elseif action == "r" then |
| 326 | 330 |
endt - start |
| 327 | 331 |
)) |
| 328 | 332 |
io.write(string.format( |
| 329 |
- "(%f seconds per card)\n", |
|
| 330 |
- (endt - start) / math.min(#ctrt, climn) |
|
| 333 |
+ "(%d lapses, %f seconds per card)\n", |
|
| 334 |
+ lrc, (endt - start) / math.min(#ctrt, climn) |
|
| 331 | 335 |
)) |
| 332 | 336 |
end |
| 333 | 337 |
if #editqueue > 0 then |
| 334 | 338 |