From c22ad35826864fa95b2547de7b7f7fbdcf503ae5 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 12 Mar 2024 16:19:47 +0100 Subject: [PATCH] Without explicit filter --- app/controllers/api/api_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 8413520..0dfb115 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -101,7 +101,7 @@ def pept2taxa response_data["result"].each do |item| taxon_objs = [] - for taxon_id in item["taxa"] + item["taxa"].each do |taxon_id| if taxon_id_to_obj.key? taxon_id taxon_objs.append(taxon_id_to_obj[taxon_information]) end @@ -109,7 +109,7 @@ def pept2taxa @result[item["sequence"]] = taxon_objs end - filter_input_order + # filter_input_order respond_with(@result) end