CHANGE: added pause time in frontend

This commit is contained in:
2025-02-23 10:08:41 +01:00
parent f73cf0884c
commit 64468271d1
5 changed files with 178 additions and 123 deletions

View File

@@ -135,7 +135,9 @@ func (b *Booking) GetBookingsGrouped(card_uid string, tsFrom time.Time, tsTo tim
sort.Slice(bookings, func(i, j int) bool {
return bookings[i].Timestamp.Before(bookings[j].Timestamp)
})
result = append(result, WorkDay{Day: day, Bookings: bookings})
workDay := WorkDay{Day: day, Bookings: bookings}
workDay.GetWorkTime()
result = append(result, workDay)
}
sort.Slice(result, func(i, j int) bool {