fix: added lower limit in collecting videos near 100k milestone

This commit is contained in:
alikia2x (寒寒) 2025-04-14 00:02:00 +08:00
parent 9ef513eed7
commit 1f6411b512
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -7,7 +7,7 @@ export async function getVideosNearMilestone(client: Client) {
SELECT ls.* SELECT ls.*
FROM latest_video_snapshot ls FROM latest_video_snapshot ls
WHERE WHERE
views < 100000 OR (views >= 5000 AND views < 100000) OR
(views >= 900000 AND views < 1000000) OR (views >= 900000 AND views < 1000000) OR
(views >= 9900000 AND views < 10000000) (views >= 9900000 AND views < 10000000)
`); `);