Skip to content

Commit

Permalink
[ifmeorg#1713] match resource tag with moment mood name and description
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Warmenhoven committed Apr 8, 2020
1 parent 7458bbf commit 39c7102
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/services/resource_recommendation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ def resources
category_description = category['description']
moment_keywords.push(category_description.split)
end
@moment.moods.each do |mood|
moment_keywords.push(mood['name'].split)
end
@moment.moods.each do |mood|
mood_description = mood['description']
moment_keywords.push(mood_description.split)
end
@moment.strategies.each do |strategy|
moment_keywords.push(strategy['name'].split)
end
Expand Down

0 comments on commit 39c7102

Please sign in to comment.