Package gfit: Include the DataStreamName in the DataStreadID.
[kraftakt.git] / 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, ":")
 }