From 963bb29d9d0f99466b09497757efcfa47eaabf58 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 2 Feb 2015 14:27:54 -0800 Subject: [PATCH] fix stats (i think) --- app/stats.rb | 2 +- views/stats.erb | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/app/stats.rb b/app/stats.rb index 487563af..0af92978 100644 --- a/app/stats.rb +++ b/app/stats.rb @@ -23,7 +23,7 @@ get '/stats/?' do now = Date.today - while runner.to_time < now.to_time + while Date.new(runner.year, runner.month, 1) <= Date.new(now.year, now.month, 1) monthly_stats.push( date: runner, sites_created: Site.where(created_at: runner..runner.next_month).count, diff --git a/views/stats.erb b/views/stats.erb index 0c53406d..3f13d771 100644 --- a/views/stats.erb +++ b/views/stats.erb @@ -75,23 +75,6 @@ Cancelled: <%= @stats[:cancelled_subscriptions] %> - -

Burn Rate

Approximate server expenses (burn rate): <%= format("$%.2f", @stats[:expenses]) %>/mo