From: Florian Forster Date: Fri, 2 Feb 2018 07:03:11 +0000 (+0100) Subject: sleepNotification(): Actually add converted sleep stages to the activities list. X-Git-Url: https://git.octo.it/?p=kraftakt.git;a=commitdiff_plain;h=87e9ba67bd11580125a8c10dfef15bc41103178c sleepNotification(): Actually add converted sleep stages to the activities list. --- diff --git a/kraftakt.go b/kraftakt.go index a2b8b13..4381596 100644 --- a/kraftakt.go +++ b/kraftakt.go @@ -511,6 +511,8 @@ func sleepNotification(ctx context.Context, s *fitbit.Subscription) error { log.Warningf(ctx, "unexpected sleep level %v", stg.Level) continue } + + activities = append(activities, a) } wg.Wait()