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