From 8477718f68e3e0781becd20236f64bd650541e12 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 12 Mar 2024 16:14:17 +0100 Subject: [PATCH] update if statement --- 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 e313dce..8413520 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_id_to_obj.key? taxon_id + if taxon_id_to_obj.key? taxon_id taxon_objs.append(taxon_id_to_obj[taxon_information]) end end