Skip to content

Commit

Permalink
Merge tool-collections into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-branch-merger[bot] authored Aug 4, 2023
2 parents ee66b04 + 3779389 commit c7d3e9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/services/tool_filter_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def group_resources(tool_groups)

def match_params(tool_group, params)
if params.has_key?(:filter)
country = params["filter"]["country"]&.upcase if params["filter"]["country"].present?
languages = params["filter"]["language"] if params["filter"]["language"].present?
openness = params["filter"]["openness"].to_i if params["filter"]["openness"].present?
confidence = params["filter"]["confidence"].to_i if params["filter"]["confidence"].present?
country = params.dig("filter", "country")&.upcase
languages = params.dig("filter", "language")
openness = params.dig("filter", "openness")&.to_i
confidence = params.dig("filter", "confidence")&.to_i
end

if country.nil? & languages.nil? & openness.nil? & confidence.nil?
Expand Down

0 comments on commit c7d3e9d

Please sign in to comment.