From: Florian Forster Date: Mon, 22 Jan 2018 21:11:13 +0000 (+0100) Subject: Package gfit: Include the DataStreamName in the DataStreadID. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1830c80233b16dea15b5d07ddc6156ac1088887d;p=kraftakt.git Package gfit: Include the DataStreamName in the DataStreadID. --- diff --git a/gfit/gfit.go b/gfit/gfit.go index 37d30b4..581a9fe 100644 --- a/gfit/gfit.go +++ b/gfit/gfit.go @@ -103,6 +103,10 @@ func DataStreamID(dataSource *fitness.DataSource) string { } } + if dataSource.DataStreamName != "" { + fields = append(fields, dataSource.DataStreamName) + } + return strings.Join(fields, ":") }