Skip to content

Commit

Permalink
filter duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 22, 2024
1 parent 0426ac9 commit 47441f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pept2filtered

# TODO: we should remove this or use a different approach
@response.each do |result|
result["taxa"] = result["taxa"].select { |taxon_id| taxa_filter_ids.include?(taxon_id) }
result["taxa"] = result["taxa"].select { |taxon_id| taxa_filter_ids.include?(taxon_id) }.uniq
end
end
end

0 comments on commit 47441f5

Please sign in to comment.