dorodere / komplett-normale-busliste

Registration system for bus drives, likely not of interest
GNU Affero General Public License v3.0
0 stars 0 forks source link

Registration deadline #6

Closed dorodere closed 1 year ago

dorodere commented 1 year ago

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.

dorodere commented 1 year ago

Rough todo when implementing: