From 700f855ce1c509bc5e0b9786185dff7d3aeef9e4 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 23 Aug 2022 12:37:03 -0300 Subject: [PATCH] Strava download - Update RPE field if present Fixes #3444 NB: activity creation doesn't support this paramter, so it is only one way sync for the moment. --- src/Cloud/Strava.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Cloud/Strava.cpp b/src/Cloud/Strava.cpp index 748ff2e46a..18247a6a41 100644 --- a/src/Cloud/Strava.cpp +++ b/src/Cloud/Strava.cpp @@ -934,6 +934,10 @@ Strava::prepareResponse(QByteArray* data) } } + if (!each["perceived_exertion"].isNull()) { + ride->setTag("RPE", QString("%1").arg(each["perceived_exertion"].toDouble())); + } + if (each["manual"].toBool()) { if (each["distance"].toDouble()>0) { QMap map;