|
|
@ -26,6 +26,7 @@ class Indigo2( |
|
|
|
private val oidcTokenEndpoint: String, |
|
|
|
private val oidcClientId: String, |
|
|
|
private val oidcClientSecret: String, |
|
|
|
private val autoClaim: Boolean, |
|
|
|
) : ExportTarget { |
|
|
|
private val om = jacksonObjectMapper().apply { |
|
|
|
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) |
|
|
@ -67,7 +68,7 @@ class Indigo2( |
|
|
|
"kind" to "ExerciseBike", |
|
|
|
"measurements" to tm(chunks.first()), |
|
|
|
), |
|
|
|
"claimed" to true, |
|
|
|
"claimed" to autoClaim, |
|
|
|
"date" to workout.date.toString(), |
|
|
|
"tags" to listOfNotNull( |
|
|
|
tag("ykonsole:Version", "2"), |
|
|
|