This is an automated email from the ASF dual-hosted git repository.
shuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new c97335d UNOMI-223 increment score if profile scores is empty
new fb945de This closes pull request number #79
c97335d is described below
commit c97335dc27a8140a788956577519e7b4731de14a
Author: Taybou <[email protected]>
AuthorDate: Wed Mar 27 16:37:51 2019 +0100
UNOMI-223 increment score if profile scores is empty
---
.../org/apache/unomi/services/sorts/ScorePersonalizationStrategy.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/services/src/main/java/org/apache/unomi/services/sorts/ScorePersonalizationStrategy.java
b/services/src/main/java/org/apache/unomi/services/sorts/ScorePersonalizationStrategy.java
index c9e22cd..f3b6cf5 100644
---
a/services/src/main/java/org/apache/unomi/services/sorts/ScorePersonalizationStrategy.java
+++
b/services/src/main/java/org/apache/unomi/services/sorts/ScorePersonalizationStrategy.java
@@ -63,6 +63,8 @@ public class ScorePersonalizationStrategy implements
PersonalizationStrategy {
for (String scoringPlan : scoringPlanList.split(" ")) {
if (scoreValues.get(scoringPlan) != null) {
score += scoreValues.get(scoringPlan);
+ } else {
+ score++;
}
}
}