Huawei: specify pace order

This commit is contained in:
Me7c7 2024-10-11 19:41:15 +03:00 committed by José Rebelo
parent 15f550d5a8
commit 0e6a3e13cc

View File

@ -357,7 +357,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser {
);
List<HuaweiWorkoutDataSample> dataSamples = qbData.build().list();
QueryBuilder<HuaweiWorkoutPaceSample> qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().where(
QueryBuilder<HuaweiWorkoutPaceSample> qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().orderAsc(HuaweiWorkoutPaceSampleDao.Properties.PaceIndex).where(
HuaweiWorkoutPaceSampleDao.Properties.WorkoutId.eq(summary.getWorkoutId())
);
@ -697,7 +697,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser {
if (pace > paceSlowest)
paceSlowest = pace;
double distance = sample.getDistance();
if (sample.getCorrection() != null) {