diff --git a/app/stats.rb b/app/stats.rb index 47a858a4..487563af 100644 --- a/app/stats.rb +++ b/app/stats.rb @@ -23,7 +23,7 @@ get '/stats/?' do now = Date.today - until runner.to_time > now.next_month.to_time + while runner.to_time < now.to_time monthly_stats.push( date: runner, sites_created: Site.where(created_at: runner..runner.next_month).count,