From 2104c08fb7c08ffde0821db36921acedc74cdc3d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 17 Feb 2015 15:31:50 -0500 Subject: [PATCH] FIX: About user count was off by 1 --- app/models/about.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/about.rb b/app/models/about.rb index ad77c591508..dedf9a0ea78 100644 --- a/app/models/about.rb +++ b/app/models/about.rb @@ -38,7 +38,7 @@ class About @stats ||= { topic_count: Topic.listable_topics.count, post_count: Post.count, - user_count: User.count, + user_count: User.real.count, topics_7_days: Topic.listable_topics.where('created_at > ?', 7.days.ago).count, topics_30_days: Topic.listable_topics.where('created_at > ?', 30.days.ago).count, posts_7_days: Post.where('created_at > ?', 7.days.ago).count,