# Les utilisateurs perdent une quantité disproportionnée d'acclamations

**URL:** <https://meta.discourse.org/t/users-losing-disproportionate-amount-of-cheers/236855>\
**Category:** Bug\
**Tags:** gamification\
**Created:** [Août 22, 2022, 4:55 UTC](https://meta.discourse.org/t/users-losing-disproportionate-amount-of-cheers/236855 "2022-08-22T16:55:02Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Janvier 6, 2023, 2:56 UTC](https://meta.discourse.org/t/users-losing-disproportionate-amount-of-cheers/236855/19 "2023-01-06T14:56:25Z")

</div>

Bonne nouvelle à tous @here 🎉

Je pense avoir trouvé la cause profonde de la perte de score et elle est maintenant corrigée dans la dernière version du plugin !

> <https://github.com/discourse/discourse-gamification/pull/79>
>
> Using \`10.days.ago\` returns not only a date but also a time:
> 
> \`\`\`
> \> 10.days.ago
> …=\> Tue, 27 Dec 2022 14:49:21.870964677 UTC +00:00
> \`\`\`
> 
> That means that the score of users on the 10th day would not include
> scorables that happened between the day start and the time when the job
> was ran, making users lose their score over time. Since we upsert the
> score, user score would go down.
> 
> Simple fix here is adding \`.midnight\` to get the full day.

Notez que vous devrez exécuter un **remplissage de score** une seule fois pour restaurer le score perdu !

---

_[View the full topic](https://meta.discourse.org/t/users-losing-disproportionate-amount-of-cheers/236855)._
