Skip to content

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

Open
falbru wants to merge 2 commits into
masterfrom
change-penalty-expiration-date
Open

Calculate penalty expiration based on event date instead of current date#3568
falbru wants to merge 2 commits into
masterfrom
change-penalty-expiration-date

Conversation

@falbru

@falbru falbru commented Mar 10, 2024

Copy link
Copy Markdown
Contributor

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

falbru commented Mar 10, 2024

Copy link
Copy Markdown
Contributor Author

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

@jonasdeluna jonasdeluna left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice work 👍👍

@ivarnakken ivarnakken left a comment

Copy link
Copy Markdown
Member

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
@falbru falbru force-pushed the change-penalty-expiration-date branch 3 times, most recently from f9d3103 to 617ede8 Compare June 9, 2024 15:15
@falbru falbru requested review from ivarnakken and jonasdeluna June 9, 2024 15:16
@falbru falbru force-pushed the change-penalty-expiration-date branch from 617ede8 to 59c288d Compare June 9, 2024 15:18
@falbru falbru requested a review from Bestem0r June 15, 2024 21:29

@Bestem0r Bestem0r left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great change!

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.

4 participants