aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-03-29 19:04:01 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-03-29 19:04:01 +0200
commit71353f58ba124cff889dffcaf0993e1df72e5067 (patch)
treeca6f39d728ce12ed05f14adb99ea4b12db005eef
parent3025e048750779c30fa6ce9d51a98f88aa8e7f10 (diff)
downloadfietsboek-71353f58ba124cff889dffcaf0993e1df72e5067.tar.gz
fietsboek-71353f58ba124cff889dffcaf0993e1df72e5067.tar.bz2
fietsboek-71353f58ba124cff889dffcaf0993e1df72e5067.zip
fix longest/shortest confusion
-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