Skip to content

Commit

Permalink
Fix string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 11, 2024
1 parent 9d6b7ba commit 5830267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def pept2data
new_data = Hash.new
item["fa"]["data"].each do |key, value|
if key.start_with? "IPR"
new_data["IPR:" . key] = value
new_data["IPR:#{key}"] = value
elsif key.start_with? "GO"
new_data[key] = value
else
new_data["EC". key] = value
new_data["EC:#{key}"] = value
end
end
item["fa"]["data"] = new_data
Expand Down

0 comments on commit 5830267

Please sign in to comment.