Remove today_avg as redundant due to other data

This commit is contained in:
Tom Bloor 2017-05-16 21:46:44 +01:00
parent 86955c0d1c
commit a680d7b9df
2 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ sub post_today {
success => Mojo::JSON->true, success => Mojo::JSON->true,
today_sum => $today_sum, today_sum => $today_sum,
today_count => $today_count, today_count => $today_count,
today_avg => $today_sum / $today_count,
}); });
} }

View file

@ -67,7 +67,6 @@ $t->post_ok('/api/stats' => json => { session_key => $session_key } )
->status_is(200) ->status_is(200)
->json_is('/success', Mojo::JSON->true) ->json_is('/success', Mojo::JSON->true)
->json_is('/today_sum', 55) ->json_is('/today_sum', 55)
->json_is('/today_count', 10) ->json_is('/today_count', 10);
->json_is('/today_avg', 5.5);
done_testing; done_testing;