Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaks aren't always recalculated #77

Open
trailtacos opened this issue Apr 27, 2024 · 0 comments
Open

Streaks aren't always recalculated #77

trailtacos opened this issue Apr 27, 2024 · 0 comments

Comments

@trailtacos
Copy link

The streak re-calculation requires that an admin remembers to "Save Race" - that code (in race_controller.rb) will reclaculate streaks for racers in this race, and the previous one.

Occasionally this leaves streaks not reset (when save race is not used for a race).

A simple fix here would be to recalculate streaks for every race where streaks > 0 or those in the current race.

The impact here is two fold:

  1. Incorrect stats for a user
  2. The likely race list containing people not on streaks

I've fixed all people manually for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant