From dd11bd6c396f19a7fdec1d425b926fc6735c3625 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 11 Jul 2021 13:35:49 +0200 Subject: [PATCH] #220 [profile] card images - show admin stats - increase precision --- src/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.js b/src/stats.js index 49a0ff5aa..d520d294c 100644 --- a/src/stats.js +++ b/src/stats.js @@ -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 }; }