From 1bf5a07f74ecb02069034a9bc74c8c188c96399c Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Wed, 5 Aug 2026 15:59:20 +0300 Subject: [PATCH] PM-5653 - remove rounding for leaderboard calculations --- src/reports/topcoder/topcoder-reports.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reports/topcoder/topcoder-reports.service.ts b/src/reports/topcoder/topcoder-reports.service.ts index f0d659b..0853fff 100644 --- a/src/reports/topcoder/topcoder-reports.service.ts +++ b/src/reports/topcoder/topcoder-reports.service.ts @@ -1070,7 +1070,7 @@ export class TopcoderReportsService implements OnModuleDestroy { row.durationDays * (filters.pointsPerDay ?? 0); const relativeRank = row.placement / Math.max(1, row.submissionsCount); const sqrt = Math.sqrt(relativeRank); - const pointsByWin = Math.round(log / sqrt); + const pointsByWin = log / sqrt; entriesByUser[row.userId].points += pointsByWin; entriesByUser[row.userId].wins[row.challengeId] = pointsByWin;