Skip to content

Commit

Permalink
reject empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 22, 2024
1 parent 2a5eb39 commit 1475d4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def pept2filtered
result["taxa"] = result["taxa"].to_set & taxa_filter_ids
end

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

end_filter_time = get_time - filter_time

end_total_time = get_time - total_time
Expand Down

0 comments on commit 1475d4c

Please sign in to comment.