# 仪表盘新帖统计数据损坏

**URL:** <https://meta.discourse.org/t/dashboard-new-posts-statistics-broken/352599>\
**Category:** Bug\
**Created:** [2025年二月16日 21:43 UTC](https://meta.discourse.org/t/dashboard-new-posts-statistics-broken/352599 "2025-02-16T21:43:11Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2025年二月28日 00:08 UTC](https://meta.discourse.org/t/dashboard-new-posts-statistics-broken/352599/15 "2025-02-28T00:08:44Z")

</div>

抱歉 Roi，这件事被忽略了。我猜报告代码本身一定有问题？[discourse/app/models/concerns/reports/posts.rb at 8596aa34c46071eb42ffbb9e19ad733d1765578e · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/8596aa34c46071eb42ffbb9e19ad733d1765578e/app/models/concerns/reports/posts.rb#L7-L32) 。

您是否可以访问您网站的 rails 控制台？如果可以，请尝试以下操作，看看是否能获得任何数据：

```ruby
Report.find("posts", start_date: 4.weeks.ago, end_date: Time.zone.now).data

```

这将输出它运行的 SQL 查询，因此那里可能会有更多线索。

---

_[View the full topic](https://meta.discourse.org/t/dashboard-new-posts-statistics-broken/352599)._
