mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Raised stats limit to 50
This commit is contained in:
parent
4dca4081c1
commit
580a9d9eba
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -307,7 +307,7 @@ app.get('/api/getTopUsers', function (req, res) {
|
|||
let totalSubmissions = [];
|
||||
let minutesSaved = [];
|
||||
|
||||
db.prepare("SELECT userID, COUNT(*) as totalSubmissions, SUM(views) as viewCount, SUM((endTime - startTime) / 60 * views) as minutesSaved FROM sponsorTimes GROUP BY userID ORDER BY " + sortBy + " DESC LIMIT 10").all(function(err, rows) {
|
||||
db.prepare("SELECT userID, COUNT(*) as totalSubmissions, SUM(views) as viewCount, SUM((endTime - startTime) / 60 * views) as minutesSaved FROM sponsorTimes GROUP BY userID ORDER BY " + sortBy + " DESC LIMIT 50").all(function(err, rows) {
|
||||
for (let i = 0; i < rows.length; i++) {
|
||||
userNames[i] = rows[i].userID;
|
||||
viewCounts[i] = rows[i].viewCount;
|
||||
|
|
Loading…
Reference in a new issue