From a7431e42505e251493d7ab51af2dcafe8047d6de Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 17 Jan 2023 13:15:33 +0100 Subject: [PATCH] bla --- stats.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stats.js b/stats.js index dd5e048..ad764dc 100644 --- a/stats.js +++ b/stats.js @@ -12,9 +12,9 @@ for (var uid in PrankData) { nbPrank ++; nbCrepe += parseInt(PrankData[uid].amount) if (userPrank[PrankData[uid].creator]) { - userPrank[PrankData[uid].creator] += nbCrepe; + userPrank[PrankData[uid].creator] += nbPrank; } else { - userPrank[PrankData[uid].creator] = nbCrepe; + userPrank[PrankData[uid].creator] = nbPrank; } } } @@ -26,5 +26,5 @@ console.log("Nombre de mission mission achevé: " + nbPrank) console.log("Nombre de crêpe servis: " + nbCrepe) console.log("Nombre moyen de crêpe par demande: " + meanCrepe + "\n") for (var user in userPrank) { - console.log(user + "a commandé " + userPrank[user] + " crêpe") + console.log(user + " a commandé " + userPrank[user] + " crêpe") }