mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
fix(workouts): read the stored route sample shape for splits and the GPX export
Both ingests store each route point's sample as { t, speedMs?, hr? }, while
computeSplits parsed every sample as a bare instant and the GPX export
skipped anything that was not a string. Splits were therefore null for
every ingested track, and an exported track carried no times. One reader,
routeSampleInstant, takes either shape. The workout detail walk is
re-pinned: its ingested run now answers its first kilometre split.
This commit is contained in:
1 parent
06d55afc46
commit
976b2ba0bc
9 files changed
+70
-9
No files matched your search
+7
-1
@@ -145,7 +145,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"splits": null,
|
||||
"splits": [
|
||||
{
|
||||
"km": 1,
|
||||
"durationSec": 530,
|
||||
"paceSecPerKm": 530
|
||||
}
|
||||
],
|
||||
"sportContext": {
|
||||
"count": 1,
|
||||
"avgDurationSec": 1800,
|
||||
|
||||
+7
-1
@@ -115,7 +115,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"splits": null,
|
||||
"splits": [
|
||||
{
|
||||
"km": 1,
|
||||
"durationSec": 530,
|
||||
"paceSecPerKm": 530
|
||||
}
|
||||
],
|
||||
"sportContext": {
|
||||
"count": 1,
|
||||
"avgDurationSec": 1800,
|
||||
|
||||
Reference in new issue
Block a user