From ab28d350d8c8891aae3829d5b844873236828a12 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 12 Mar 2024 16:12:42 +0100 Subject: [PATCH] retrieve taxa from JSON object --- app/controllers/api/api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 4d7fe4c..e313dce 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -102,7 +102,7 @@ def pept2taxa response_data["result"].each do |item| taxon_objs = [] for taxon_id in item["taxa"] - unless taxon_information.key? taxon_id + unless taxon_id_to_obj.key? taxon_id taxon_objs.append(taxon_id_to_obj[taxon_information]) end end