From 701e4292a47b930de11e776276d1a71f1ff2fe7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brockm=C3=B6ller?= Date: Wed, 6 Jul 2022 08:16:55 +0200 Subject: [PATCH] fix --- fittrackee/workouts/utils/gpx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fittrackee/workouts/utils/gpx.py b/fittrackee/workouts/utils/gpx.py index 367c1c3c..3b950a99 100644 --- a/fittrackee/workouts/utils/gpx.py +++ b/fittrackee/workouts/utils/gpx.py @@ -104,7 +104,9 @@ def get_gpx_info( # if a previous segment exists, calculate stopped time between # the two segments if prev_seg_last_point: - stopped_time_between_seg = point.time - prev_seg_last_point + stopped_time_between_seg += ( + point.time - prev_seg_last_point + ) # last segment point if point_idx == (segment_points_nb - 1):