Skip to content

Commit

Permalink
replace taxa by symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed May 28, 2024
1 parent dd475e4 commit 7ea0f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def pept2filtered
taxa_filter_ids = taxa_filter_ids.to_set

@response.each do |result|
result["taxa"] = result["taxa"].to_set & taxa_filter_ids
result[:taxa] = result[:taxa].to_set & taxa_filter_ids
end

@response.reject! { |result| result["taxa"].empty? }
@response.reject! { |result| result[:taxa].empty? }
end
end

0 comments on commit 7ea0f31

Please sign in to comment.