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