Skip to content

Commit

Permalink
remove outdated weight adjustment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
swellander committed Jul 30, 2024
1 parent 0c97527 commit bc36953
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/nextjs/pages/api/etl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,8 @@ const getImpactIndex = (
for (const metric of metrics) {
weightSum += weights[metric];
}
// If the weights don't add up to 100 then we expect they are each a 0-100 percentage and need to be adjusted
const indPct = Math.round(weightSum) !== 100;
for (const metric of metrics) {
const multiplier = indPct ? weights[metric] / weightSum : weights[metric];
const multiplier = weights[metric] / weightSum;

// Normalize score
const max = maxScoreByMetric[metric] || 0;
Expand Down

0 comments on commit bc36953

Please sign in to comment.