Skip to content

Commit

Permalink
Change user opportunity algo
Browse files Browse the repository at this point in the history
User project matching based on project title and description

Closes SUSE#34
  • Loading branch information
AnkushMalik committed Mar 10, 2018
1 parent ef59f62 commit 13ac2b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def recommended_projects
else
projects = word.projects
end
(Episode.active.projects - word.projects).each do |p|
projects << p if p.description.include? word.name or p.title.include? word.name
end
projects.each do |p|
next unless p.active?
recommended << p
Expand Down

0 comments on commit 13ac2b1

Please sign in to comment.