Skip to content

Commit

Permalink
retrieve taxa from JSON object
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 12, 2024
1 parent 49210d0 commit 0d28009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d28009

Please sign in to comment.