Skip to content

Commit

Permalink
up calc formula
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Jun 26, 2014
1 parent 5d346bd commit 9e271b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sportdb/play/models/tip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def calc_points_worker
if(((game.score1 == game.score2) && (score1 == score2)) ||
((game.score1 > game.score2) && (score1 > score2)) ||
((game.score1 < game.score2) && (score1 < score2)))
pts += 1
pts += 2
end

# tordifferenz richtig? todo: auch fuer unentschieden???
Expand All @@ -154,7 +154,7 @@ def calc_points_worker
# -- check 4+ rule for result
if( [game.score1,4].min == [score1,4].min &&
[game.score2,4].min == [score2,4].min )
pts += 2
# pts += 2
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/sportdb/play/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module SportDb
module Play
VERSION = '0.2.3'
VERSION = '0.2.4'
end
end

0 comments on commit 9e271b8

Please sign in to comment.