fix(recommendation-engine): S4-FIX — opersonliga vyer fungerar utan samtycke via depersonalize(weights)
This commit is contained in:
@@ -211,3 +211,8 @@ export function viewWeights(view: RecommendationView): ScoringWeights {
|
||||
return DEFAULT_WEIGHTS;
|
||||
}
|
||||
}
|
||||
|
||||
/** Nollställ de personliga axlarna i en viktmängd — används när samtycke saknas. */
|
||||
export function depersonalize(weights: ScoringWeights): ScoringWeights {
|
||||
return { ...weights, memoryFit: 0, tasteFit: 0, cookingAssumptionFit: 0 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user