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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user