From c182ef753556b6628e5ac1211c37bc7c47a698d3 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Sun, 29 Sep 2024 13:38:56 +0330 Subject: [PATCH] Finish the comparisons sooner by a factor of 3 --- src/flow/flow.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/flow/flow.service.ts b/src/flow/flow.service.ts index ed4ecaa..bf65380 100644 --- a/src/flow/flow.service.ts +++ b/src/flow/flow.service.ts @@ -714,12 +714,14 @@ export class FlowService { ), ); - const progress = this.calculateProgress( + const realProgress = this.calculateProgress( allVotes, projectStars, allProjects, ); + const progress = Math.min(1, realProgress * 3); + if (progress === 1) { // if (collection) { // // There's no other pairs to vote from so finishing the collection automatically