From a3363d74636fbb92100030aa7eb711f3c5594a17 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Fri, 24 Nov 2023 13:52:00 +0800 Subject: [PATCH] ignore filtered revlog in time of last review (#2845) * ignore filtered revlog in time of last review * fmt SQL --- rslib/src/storage/revlog/time_of_last_review.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rslib/src/storage/revlog/time_of_last_review.sql b/rslib/src/storage/revlog/time_of_last_review.sql index ce66308f5..0b90fa065 100644 --- a/rslib/src/storage/revlog/time_of_last_review.sql +++ b/rslib/src/storage/revlog/time_of_last_review.sql @@ -2,5 +2,9 @@ SELECT id / 1000 FROM revlog WHERE cid = $1 AND ease BETWEEN 1 AND 4 + AND ( + type != 3 + OR factor != 0 + ) ORDER BY id DESC LIMIT 1 \ No newline at end of file