mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: About user count was off by 1
This commit is contained in:
parent
a15a35f482
commit
2104c08fb7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue