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

Calculate penalty expiration based on event date instead of current date #3568

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

falbru
Copy link
Contributor

@falbru falbru commented Mar 10, 2024

This just makes sense in my opinion. A few incidents have happened where a penalty weight has to be changed or a penalty being deleted by accident has to be added again. When the penalty is added again, the expiration date would be later since it is calculated based on when it was created instead of the event date.

after:
Screenshot from 2024-03-10 16-34-14

I made these penalties at the same time

@falbru falbru requested a review from a team March 10, 2024 15:40
@falbru falbru force-pushed the change-penalty-expiration-date branch from ce47a83 to dc95e8e Compare March 10, 2024 15:42
@falbru
Copy link
Contributor Author

falbru commented Mar 10, 2024

This should probably get fixed when the new penalty rules get merged, so not that important to merge

Copy link
Member

@jonasdeluna jonasdeluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👍👍

Copy link
Member

@ivarnakken ivarnakken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this makes more sense 👍🏼

@ivarnakken ivarnakken added approved Pull requests that have been approved small-fix Pull requests that fix something small labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved small-fix Pull requests that fix something small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants