Skip to content

Commit

Permalink
Strava download - Update RPE field if present
Browse files Browse the repository at this point in the history
Fixes #3444
NB: activity creation doesn't support this paramter,
so it is only one way sync for the moment.
  • Loading branch information
amtriathlon committed Aug 23, 2022
1 parent 1e82202 commit 700f855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cloud/Strava.cpp
Expand Up @@ -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<QString,QString> map;
Expand Down

0 comments on commit 700f855

Please sign in to comment.