1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: tests

This commit is contained in:
Ferdinand Mütsch
2021-01-31 16:58:59 +01:00
parent 665ffe8bd1
commit e4b38d3f51
3 changed files with 288 additions and 312 deletions

View File

@ -200,12 +200,12 @@ func (s *Summary) TotalTimeByKey(entityType uint8, key string) (timeSum time.Dur
return timeSum
}
func (s *Summary) TotalTimeByFilters(filters *Filters) (timeSum time.Duration) {
func (s *Summary) TotalTimeByFilters(filters *Filters) time.Duration {
do, typeId, key := filters.One()
if do {
return s.TotalTimeByKey(typeId, key)
}
return s.TotalTime()
return 0
}
func (s *Summary) WithResolvedAliases(resolve AliasResolver) *Summary {