fixed #28
All checks were successful
Tests / Run Go Tests (push) Successful in 28s

This commit is contained in:
2025-09-05 10:36:26 +02:00
parent 9d70d4db17
commit de03c100d4
8 changed files with 242 additions and 205 deletions

View File

@@ -193,3 +193,11 @@ func (w *WorkWeek) Accept() error {
}
return nil
}
func (w *WorkWeek) RequiresAction() bool {
var requiresAction bool = true
for _, day := range w.WorkDays {
requiresAction = requiresAction || day.RequiresAction()
}
return requiresAction
}