From a680d7b9df5620a161ae642ff242aac41ebd2559 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 16 May 2017 21:46:44 +0100 Subject: [PATCH] Remove today_avg as redundant due to other data --- lib/Pear/LocalLoop/Controller/Api/Stats.pm | 1 - t/api/stats.t | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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;