In order to book the bus early enough, make all transactions and the like, you might want to wish to have a configurable deadline per drive. After this deadline no more registrations can be made, no matter if the cap is reached or not.
Currently the deadline is hardcoded to be the day of the drive, at 00:00 UTC:
This probably needs to be configurable in a way that matches both drives per weekend at once, so for example if one drive is on Friday and one on Monday, but the user set Thursday 00:00 UTC as deadline, both drives need to respect the case where the deadline might be in another week. In other terms, every drive needs to watch out about what's the last time matching this deadline is, and not necessarily the week the drive is in.
In order to book the bus early enough, make all transactions and the like, you might want to wish to have a configurable deadline per drive. After this deadline no more registrations can be made, no matter if the cap is reached or not.
Currently the deadline is hardcoded to be the day of the drive, at 00:00 UTC:
https://github.com/dorodere/komplett-normale-busliste/blob/37e479201def703088639c8a4a74ecfb6325642e/src/main.rs#L162-L168
This probably needs to be configurable in a way that matches both drives per weekend at once, so for example if one drive is on Friday and one on Monday, but the user set Thursday 00:00 UTC as deadline, both drives need to respect the case where the deadline might be in another week. In other terms, every drive needs to watch out about what's the last time matching this deadline is, and not necessarily the week the drive is in.