Commit c9c7499a89418b832f81533ff52164c1bacb4bc6
1 parent
c6f4a0ac
Exists in
master
and in
1 other branch
when updating wins / losses, re-compute score
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/tasks/test_api.rake
@@ -10,6 +10,8 @@ namespace :test_api do | @@ -10,6 +10,8 @@ namespace :test_api do | ||
10 | Choice.update_counters choice.id, | 10 | Choice.update_counters choice.id, |
11 | :losses => (true_losses - choice.losses), | 11 | :losses => (true_losses - choice.losses), |
12 | :wins => (true_wins - choice.wins) | 12 | :wins => (true_wins - choice.wins) |
13 | + choice.reload | ||
14 | + choice.compute_score! | ||
13 | end | 15 | end |
14 | end | 16 | end |
15 | end | 17 | end |