mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Make chapters easier to submit
This commit is contained in:
parent
3708d293dc
commit
579e2b90a3
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ async function lowDownvotes(userID: HashedUserID): Promise<boolean> {
|
|||
const result = await db.prepare("get", `SELECT count(*) as "submissionCount", SUM(CASE WHEN "votes" < 0 AND "views" > 5 THEN 1 ELSE 0 END) AS "downvotedSubmissions" FROM "sponsorTimes" WHERE "userID" = ?`
|
||||
, [userID], { useReplica: true });
|
||||
|
||||
return result.submissionCount > 10 && result.downvotedSubmissions / result.submissionCount < 0.15;
|
||||
return result.submissionCount > 5 && result.downvotedSubmissions / result.submissionCount < 0.10;
|
||||
}
|
||||
|
||||
export async function canSubmit(userID: HashedUserID, category: Category): Promise<CanSubmitResult> {
|
||||
|
|
Loading…
Reference in a new issue