Package gfit: Include the DataStreamName in the DataStreadID.
authorFlorian Forster <ff@octo.it>
Mon, 22 Jan 2018 21:11:13 +0000 (22:11 +0100)
committerFlorian Forster <ff@octo.it>
Mon, 22 Jan 2018 21:14:09 +0000 (22:14 +0100)
gfit/gfit.go

index 37d30b4..581a9fe 100644 (file)
@@ -103,6 +103,10 @@ func DataStreamID(dataSource *fitness.DataSource) string {
                }
        }
 
+       if dataSource.DataStreamName != "" {
+               fields = append(fields, dataSource.DataStreamName)
+       }
+
        return strings.Join(fields, ":")
 }