From 9df4d52bb5316a20c5a92376b2edf54c0d5641a3 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sun, 14 May 2023 17:15:54 +0000 Subject: [PATCH] fix: removed ratings battle count in tank stats --- src/commands/tankstats.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/tankstats.ts b/src/commands/tankstats.ts index b137c2201..b27af84b3 100644 --- a/src/commands/tankstats.ts +++ b/src/commands/tankstats.ts @@ -55,7 +55,9 @@ export default { if (tank) { const periodicStats = ( await getPeriodicStats(blitzAccount.account_id, Number(period)) - ).filter((stats) => stats.tank_id === tank.tank_id); + ) + .filter((stats) => stats.tank_id === tank.tank_id) + .filter((stats) => !stats.isRating); function sum(summer: (period: Period) => number) { return periodicStats.reduce(