# 周期统计可以使用自定义时间范围，而不局限于最近的周期吗？

**URL:** <https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913>\
**Category:** Feature\
**Created:** [2021年十月13日 05:56 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913 "2021-10-13T05:56:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carverofchocie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carverofchocie/32/236631_2.png) [@Carverofchocie](https://meta.discourse.org/u/Carverofchocie)\
**Post date:** [2021年十月13日 05:56 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/1 "2021-10-13T05:56:18Z")

</div>

在另一个 Discourse 论坛中，我正在努力获取“奉献者”徽章（连续登录 365 天）。我的登录天数已经显示为 364 天有一段时间了，但我完全不知道如何找出缺失的那一天（是明天，还是还要等 8 个月？）。唯一能确定的是，它不在最近的一个季度内。以下是我所说的统计链接示例：

[https://meta.discourse.org/u?period=yearly](https://meta.discourse.org/u?period=yearly)

在那里，我可以将周期更改为“年”、“季度”、“月”、“周”或“今天”。随后它会显示我们在那个周期内访问了多少天。问题在于，它仅提供最近一个周期的选项。因此，无法缩小范围来找出去年前三个季度、前 11 个月或前 51 周中缺失的那一天，只能查看最近的一个周期。

我们能否手动输入自定义周期或结束时间来查看特定时间段内的统计数据？例如，类似这样的格式：

[https://meta.discourse.org/u?period=monthly&July](https://meta.discourse.org/u?period=monthly&July)

其中将月份或时间段附加在末尾，以指定非最近周期的时间段？我知道“报告”功能对版主可见，但这对于 99% 非版主用户没有帮助，我们无法通过这种方式了解自己距离获得某个徽章还有多远。

如果确实可以搜索非最近周期的统计数据，我非常希望能得到一些关于如何操作的建议。🙂

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年十月13日 09:57 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/2 "2021-10-13T09:57:35Z")

</div>

使用 [Data Explorer 插件](https://meta.discourse.org/t/data-explorer-plugin/32566)，您可以获取任意您想要的日期数据。

---

<div class="post-metadata">

**Author:** ![Carverofchocie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carverofchocie/32/236631_2.png) [@Carverofchocie](https://meta.discourse.org/u/Carverofchocie)\
**Post date:** [2021年十月13日 19:58 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/3 "2021-10-13T19:58:32Z")

</div>

是的，如果我是论坛管理员，我会这样做……感谢分享，这看起来确实是一个很棒插件，而且我具备中等水平的 SQL 经验。

遗憾的是，我不是管理员，无法安装插件或访问后台或报告。这就是我希望能通过那个链接页面实现该功能的原因。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年十月13日 20:00 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/4 "2021-10-13T20:00:57Z")

</div>

抱歉。我有个坏习惯，总把 #Contribute > Feature 当成 #Support 来处理。

不过，如果你能让管理员帮忙安装，也可以让他们创建一些非员工也能自行运行的查询。

---

<div class="post-metadata">

**Author:** ![Carverofchocie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carverofchocie/32/236631_2.png) [@Carverofchocie](https://meta.discourse.org/u/Carverofchocie)\
**Post date:** [2021年十月18日 20:51 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/5 "2021-10-18T20:51:18Z")

</div>

我没想到他们竟然可以像这样对特定查询开放有限访问权限。这实际上是一个非常棒的建议。我打算把这个想法反馈给管理员，看看他的意见……因为我们有一群人正在努力弄清楚自己距离获得“信徒”徽章还有多远。感谢提出这个想法，非常有帮助！

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年十月18日 21:37 UTC](https://meta.discourse.org/t/can-the-period-stats-use-custom-time-frames-to-not-be-limited-to-only-the-most-recent-period/205913/6 "2021-10-18T21:37:30Z")

</div>

太好了！很高兴它们能帮上忙。稍加努力，它们可以构建一个查询，让您选择要查找的用户。
