update: reduce rate limit, no longer collect deleted videos for milestone monitoring

This commit is contained in:
alikia2x (寒寒) 2025-03-26 23:13:53 +08:00
parent 2c51c3c09c
commit 5450c17e13
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ export async function getVideosNearMilestone(client: Client) {
FROM latest_video_snapshot ls
INNER JOIN
songs s ON ls.aid = s.aid
AND s.deleted = false
WHERE
s.deleted = false AND
(views >= 90000 AND views < 100000) OR

View File

@ -334,7 +334,10 @@ const biliLimiterConfig: RateLimiterConfig[] = [
];
const bili_test = biliLimiterConfig;
bili_test[3].max = 500
bili_test[0].max = 10;
bili_test[1].max = 36;
bili_test[2].max = 150;
bili_test[3].max = 1000;
/*
Execution order for setup: