diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 8947fe2..4d7fe4c 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 + for taxon_id in item["taxa"] unless taxon_information.key? taxon_id taxon_objs.append(taxon_id_to_obj[taxon_information]) end