Fixed shield user count

This commit is contained in:
Ajay Ramachandran
2020-01-24 21:56:57 -05:00
parent 0b6d2381dc
commit d3998f5d13

View File

@@ -772,7 +772,7 @@ app.get('/api/getTotalStats', function (req, res) {
//send out a formatted time saved total
app.get('/api/getDaysSavedFormatted', function (req, res) {
let row = db.prepare("SELECT SUM((endTime - startTime) / 60 / 60 / 24 * views) as daysSaved FROM sponsorTimes").get();
let row = db.prepare("SELECT SUM((endTime - startTime) / 60 / 60 / 24 * views) as daysSaved FROM sponsorTimes WHERE shadowHidden != 1").get();
if (row !== undefined) {
//send this result