diff --git a/app/controllers/mpa/pept2filtered_controller.rb b/app/controllers/mpa/pept2filtered_controller.rb index 683e4e6..e669e91 100644 --- a/app/controllers/mpa/pept2filtered_controller.rb +++ b/app/controllers/mpa/pept2filtered_controller.rb @@ -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