algorithm no longer awards points for inactive keywords

This commit is contained in:
Fredrik Friis 2012-02-15 12:24:20 +09:00
parent a98c214bcd
commit 9263fef170

@ -246,7 +246,7 @@ public class GreedyMatchingAlgorithm implements MatchingAlgorithm {
for (Keyword projectIdeaKeyword : projectIdea.getKeywords().getAll()) {
for (Keyword supervisorKeyword : supervisor.getKeywords().getFiltered(projectIdeaKeyword.getType())) {
if (projectIdeaKeyword.equals(supervisorKeyword)) {
if (projectIdeaKeyword.equals(supervisorKeyword) && !projectIdeaKeyword.isDeleted() && !supervisorKeyword.isDeleted()) {
points += weights.getPoints(projectIdeaKeyword.getType());
}
}