diff --git a/lib/Pear/LocalLoop/Controller/Api/Stats.pm b/lib/Pear/LocalLoop/Controller/Api/Stats.pm index 45b1fc3..af2931a 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Stats.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Stats.pm @@ -14,7 +14,6 @@ sub post_today { success => Mojo::JSON->true, today_sum => $today_sum, today_count => $today_count, - today_avg => $today_sum / $today_count, }); } diff --git a/t/api/stats.t b/t/api/stats.t index d199b11..5c06cee 100644 --- a/t/api/stats.t +++ b/t/api/stats.t @@ -67,7 +67,6 @@ $t->post_ok('/api/stats' => json => { session_key => $session_key } ) ->status_is(200) ->json_is('/success', Mojo::JSON->true) ->json_is('/today_sum', 55) - ->json_is('/today_count', 10) - ->json_is('/today_avg', 5.5); + ->json_is('/today_count', 10); done_testing;