feat: booking can only in between specified hours

every booking happening outside these hours will be clamped to the hours
also added few more config options + regex filters
This commit is contained in:
2026-02-25 01:02:15 +01:00
parent f21ce9a3c3
commit 8bb1777519
7 changed files with 129 additions and 68 deletions

View File

@@ -424,10 +424,12 @@ GROUP BY
// returns bool wheter the workday was ended with an automatic logout
func (d *WorkDay) RequiresAction() bool {
if len(d.Bookings) == 0 {
return false
for i := range d.Bookings {
if d.Bookings[i].CheckInOut > 250 {
return true
}
}
return d.Bookings[len(d.Bookings)-1].CheckInOut == 254
return false
}
func (d *WorkDay) GetDayProgress(u User) int8 {