mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Added limit for time of day table.
This commit is contained in:
@@ -158,6 +158,12 @@ func GetPlatform(startDate, endDate time.Time) *pirsch.VisitorStats {
|
||||
}
|
||||
|
||||
func GetVisitorTimeOfDay(startDate, endDate time.Time) []pirsch.TimeOfDayVisitors {
|
||||
max := startDate.Add(time.Hour * 24 * 7)
|
||||
|
||||
if endDate.After(max) {
|
||||
endDate = max
|
||||
}
|
||||
|
||||
visitors, err := analyzer.TimeOfDay(&pirsch.Filter{From: startDate, To: endDate})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user