ignore filtered revlog in time of last review (#2845)

* ignore filtered revlog in time of last review

* fmt SQL
This commit is contained in:
Jarrett Ye 2023-11-24 13:52:00 +08:00 committed by GitHub
parent a50b086b33
commit a3363d7463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,5 +2,9 @@ SELECT id / 1000
FROM revlog FROM revlog
WHERE cid = $1 WHERE cid = $1
AND ease BETWEEN 1 AND 4 AND ease BETWEEN 1 AND 4
AND (
type != 3
OR factor != 0
)
ORDER BY id DESC ORDER BY id DESC
LIMIT 1 LIMIT 1