From 71353f58ba124cff889dffcaf0993e1df72e5067 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 29 Mar 2023 19:04:01 +0200 Subject: fix longest/shortest confusion --- fietsboek/views/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3