Skip to content

Commit

Permalink
Finish the comparisons sooner by a factor of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahdigh committed Sep 29, 2024
1 parent e2a8bef commit c182ef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/flow/flow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c182ef7

Please sign in to comment.