webkom / lego

Backend for abakus.no
https://lego.abakus.no
MIT License
52 stars 20 forks source link

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

Open falbru opened 4 months ago

falbru commented 4 months ago

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 commented 4 months ago

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