Commit c9c7499a89418b832f81533ff52164c1bacb4bc6

Authored by Luke Baker
1 parent c6f4a0ac

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 10 Choice.update_counters choice.id,
11 11 :losses => (true_losses - choice.losses),
12 12 :wins => (true_wins - choice.wins)
  13 + choice.reload
  14 + choice.compute_score!
13 15 end
14 16 end
15 17 end
... ...