Templates verbessert

This commit is contained in:
Gonne 2022-09-07 21:48:40 +02:00
parent 56b4a3ab34
commit e9e0cbf382
11 changed files with 53 additions and 42 deletions

View file

@ -21,3 +21,7 @@ type OfficeHourRepository interface {
Add(officeHour OfficeHour) (int, error)
AllowedAt(date Date, duration int, room Room, activeOnly bool) (bool, error)
}
func (officeHour OfficeHour) EndDate() Date {
return GetEndDate(officeHour.Date, officeHour.Duration, false)
}