Skip to content

Commit

Permalink
session save laptime of previous lap
Browse files Browse the repository at this point in the history
  • Loading branch information
durandom committed Nov 12, 2024
1 parent 3af078e commit 0ca7360
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions telemetry/models/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def analyze_other(self, telemetry, now) -> None:
self.previous_lap.valid = previous_lap_was_valid
self.previous_lap.finished = True
logger.debug(f"lap {self.previous_lap.number} time {lap_time_previous} valid {previous_lap_was_valid}")
self.previous_lap.save_dirty_fields()

self.previous_distance = distance
self.previous_lap_time = lap_time
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0ca7360

Please sign in to comment.