From 87e9ba67bd11580125a8c10dfef15bc41103178c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 2 Feb 2018 08:03:11 +0100 Subject: [PATCH] sleepNotification(): Actually add converted sleep stages to the activities list. --- kraftakt.go | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.11.0