Skip to content

Commit

Permalink
Convert string to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 11, 2024
1 parent e178bb7 commit 228ec9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def pept2data
@lineages[taxon.id] = taxon.lineage.to_a_idx
end

@response.each do |entry|
entry["lineage"] = @lineages[entry["lca"].to_i]
end
# @response.each do |entry|
# entry["lineage"] = @lineages[entry["lca"].to_i]
# end

@response
end
Expand Down

0 comments on commit 228ec9a

Please sign in to comment.