mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-26 06:23:35 -04:00
#220 [profile] card images - show admin stats - increase precision
This commit is contained in:
parent
a7b8ed7c48
commit
dd11bd6c39
@ -109,7 +109,7 @@ module.exports.calculateStats = async (db, allLocales) => {
|
||||
}
|
||||
|
||||
const cardsCount = (await db.get(`SELECT 1.0 * (SELECT count(*) FROM profiles WHERE card IS NOT NULL) / (SELECT count(*) FROM profiles) as c`)).c;
|
||||
const cards = Math.round(cardsCount * 1000) / 1000;
|
||||
const cards = Math.round(cardsCount * 10000) / 10000;
|
||||
|
||||
return { calculatedAt: parseInt(new Date() / 1000), users, locales, cards };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user