aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/views/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fietsboek/views/profile.py b/fietsboek/views/profile.py
index df49c3c..f7b1d79 100644
--- a/fietsboek/views/profile.py
+++ b/fietsboek/views/profile.py
@@ -65,7 +65,7 @@ class CumulativeStats:
self.max_speed = max(self.max_speed, track.max_speed)
if (
- self.shortest_distance_track is None
+ self.longest_distance_track is None
or self.longest_distance_track.length < track.length
):
self.longest_distance_track = track