diff --git a/app/controllers/mpa_controller.rb b/app/controllers/mpa_controller.rb index 522e67a..dcd5af8 100644 --- a/app/controllers/mpa_controller.rb +++ b/app/controllers/mpa_controller.rb @@ -22,12 +22,11 @@ def pept2data splitted = line.rstrip.split(";") # Skip taxa that are not found unless splitted[1] == "/" - @response[splitted[0]] = splitted[1] + @response[splitted[0]] = splitted[1].to_i end end taxa = Taxon.includes(:lineage).find(@response.values) - puts taxa.inspect @lineages = Hash.new taxa.each do |taxon|