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.
This commit is contained in:
Alejandro Martinez
2022-08-23 12:37:03 -03:00
parent 1e8220237c
commit 700f855ce1

View File

@@ -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;