mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Fix: missing search_cids
This commit is contained in:
parent
dc1489fe98
commit
ae30fa90f1
1 changed files with 5 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ WITH searched_revlogs AS (
|
|||
SELECT *
|
||||
FROM revlog
|
||||
WHERE ease > 0
|
||||
AND cid IN search_cids
|
||||
ORDER BY id DESC -- Use the last 10_000 reviews
|
||||
LIMIT 10000
|
||||
), average_pass AS (
|
||||
|
|
@ -18,7 +19,10 @@ lapse_count AS (
|
|||
fail_sum AS (
|
||||
SELECT SUM(time) AS total_fail_time
|
||||
FROM searched_revlogs
|
||||
WHERE (ease = 1 AND type = 1)
|
||||
WHERE (
|
||||
ease = 1
|
||||
AND type = 1
|
||||
)
|
||||
OR type = 2
|
||||
),
|
||||
-- (sum(Relearning) + sum(Lapses)) / count(Lapses)
|
||||
|
|
|
|||
Loading…
Reference in a new issue