diff options
-rw-r--r-- | fietsboek/views/profile.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fietsboek/views/profile.py b/fietsboek/views/profile.py index bf1475c..a08fad7 100644 --- a/fietsboek/views/profile.py +++ b/fietsboek/views/profile.py @@ -23,6 +23,7 @@ class CumulativeStats: The values start out with default values, and tracks can be merged in via :meth:`add`. """ + # pylint: disable=too-many-instance-attributes count: int = 0 @@ -71,10 +72,7 @@ class CumulativeStats: self.stopped_time += track.stopped_time self.max_speed = max(self.max_speed, track.max_speed) - if ( - self.longest_distance_track is None - or self.longest_distance_track.length < track.length - ): + if self.longest_distance_track is None or self.longest_distance_track.length < track.length: self.longest_distance_track = track if ( |