From 233c688fed5abf3db150052801db7d6732daa44b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 29 Mar 2023 20:16:06 +0200 Subject: fix lint --- fietsboek/views/profile.py | 6 ++---- 1 file 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 ( -- cgit v1.2.3