Permalink
Browse files

fix total calculation

  • Loading branch information...
1 parent 04bc8fb commit a3cd5dccae54fe56631a5a44911d0c2e8c9148cb @mikepmunroe committed Apr 8, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/models/athlete.rb
View
4 app/models/athlete.rb
@@ -49,9 +49,7 @@ def self.populate_scores
positions = []
scores.each do |value|
if (match = value.scan(/\A\d*/))
- if (match[1])
- positions << match[0].to_i
- end
+ positions << match[0].to_i
end
end
athlete.total = positions.inject(0) {|sum, i| sum + i}

0 comments on commit a3cd5dc

Please sign in to comment.