From 0cff53cf42a286a29e628e37cf3f63753ca0f432 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 25 May 2024 14:42:49 +0200 Subject: [PATCH] Fix driver standing points string for NC --- formula10/domain/model/race_result.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/formula10/domain/model/race_result.py b/formula10/domain/model/race_result.py index 3528f99..7ead6be 100644 --- a/formula10/domain/model/race_result.py +++ b/formula10/domain/model/race_result.py @@ -154,6 +154,8 @@ class RaceResult: return points_strings[position_offset] else: return "0 Points" + elif driver == _driver and driver in self.standing_exclusions: + return "0 Points" raise Exception(f"Could not get points string for driver {driver.name}")