# Users Complaining About Losing Points

**URL:** https://meta.discourse.org/t/users-complaining-about-losing-points/344927
**Category:** Support
**Tags:** gamification
**Created:** [December 21, 2024, 4:10pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927 "2024-12-21T16:10:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Bramante](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_bramante/32/445410_2.png) [@Victor\_Bramante](https://meta.discourse.org/u/Victor_Bramante)
#### Post date: [December 21, 2024, 4:10pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/1 "2024-12-21T16:10:03Z")

</div>

Hi, I’m trying to understand how it works.

Tried to set up 2 Leaderboards to calculate Nov 2024 and Dec 2024 winners. Put fixed dates for both (ie 11/01 to 11/30) and none works ok, because:

- you are forced to use a default period even it is stated as optional  

- if I choose Monthly, calculates points of the latest 30 days even with fixed dates

- if I choose Always, sums all the points and also bypass those fixed dates

What I have to do to calculate points of Nov-2024? Users views that they’re losing points each day so they’re sending me messages complaining about it.

Also, would be cool to have an option to hide the selector in the public view of the leaderboard.

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [December 30, 2024, 7:04pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/2 "2024-12-30T19:04:05Z")

</div>

Leaving the default period as `All Time` should work just fine. `All Time` here is intended to be within the bounds of the leaderboard’s from/to dates, if set.

However, there appears to be a bug where filtering the leaderboard by certain periods produces incorrect results. The `score_period_condition` implementation doesn’t properly account for the leaderboard’s From/To dates and conflicts with the main leaderboard bounds check.

> <https://github.com/discourse/discourse-gamification/blob/03ea20da05572acdd2481e61bbbdd7bfe30706d3/lib/discourse_gamification/leaderboard_cached_view.rb#L267-L285>

> <https://github.com/discourse/discourse-gamification/blob/03ea20da05572acdd2481e61bbbdd7bfe30706d3/lib/discourse_gamification/leaderboard_cached_view.rb#L150-L178>

I’m looking into this, a fix should be ready soon.

---

<div class="post-metadata">

### Author: ![Victor\_Bramante](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_bramante/32/445410_2.png) [@Victor\_Bramante](https://meta.discourse.org/u/Victor_Bramante)
#### Post date: [December 30, 2024, 7:51pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/3 "2024-12-30T19:51:56Z")

</div>

Thanks, let me know when you do it to check again.

Happy new year!

---

<div class="post-metadata">

### Author: ![Victor\_Bramante](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/victor_bramante/32/445410_2.png) [@Victor\_Bramante](https://meta.discourse.org/u/Victor_Bramante)
#### Post date: [January 13, 2025, 11:19pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/4 "2025-01-13T23:19:52Z")

</div>

Hi!

Was the fix applied? Seems that my leaderboards of december are not showing consistent results.

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [January 14, 2025, 11:30am UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/5 "2025-01-14T11:30:22Z")

</div>

Apologies for the delay. The fix isn’t applied yet, but I have two pending PRs ready for review. Will update once they’re merged.

- [FIX: Redo period filtering to respect leaderboard date bounds by s3lase · Pull Request #178 · discourse/discourse-gamification · GitHub](https://github.com/discourse/discourse-gamification/pull/178) fixes the materialized view query.
- [FEATURE: Add option to lock leaderboard view to default period by s3lase · Pull Request #179 · discourse/discourse-gamification · GitHub](https://github.com/discourse/discourse-gamification/pull/179) adds an option to disable the time period selector.

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [January 20, 2025, 12:41pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/6 "2025-01-20T12:41:47Z")

</div>

Thank you for your patience. The changes have been merged and are now available for verification. Please let us know if you encounter any further issues or have any questions.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 18, 2025, 8:29pm UTC](https://meta.discourse.org/t/users-complaining-about-losing-points/344927/7 "2025-03-18T20:29:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
