mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
feat: total heartbeats per summary (resolve #283)
This commit is contained in:
@ -57,6 +57,8 @@ func (srv *DurationService) Get(from, to time.Time, user *models.User) (models.D
|
||||
mapping[d1.GroupHash] = append(mapping[d1.GroupHash], d1)
|
||||
}
|
||||
latest = d1
|
||||
} else {
|
||||
latest.NumHeartbeats++
|
||||
}
|
||||
|
||||
count++
|
||||
|
Reference in New Issue
Block a user