Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix total calculation

  • Loading branch information...
commit a3cd5dccae54fe56631a5a44911d0c2e8c9148cb 1 parent 04bc8fb
@mikepmunroe authored
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}
Please sign in to comment.
Something went wrong with that request. Please try again.