From 9cdd7267dbaf83b0f965d86cf02b4a9a55617936 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 8 Dec 2024 17:22:14 +0100 Subject: [PATCH] Bug: Fix missing inactive drivers in season guesses --- formula10/__init__.py | 2 +- formula10/domain/template_model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/formula10/__init__.py b/formula10/__init__.py index 504c7b1..3801537 100644 --- a/formula10/__init__.py +++ b/formula10/__init__.py @@ -29,7 +29,7 @@ cache.init_app(app) # app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=("/formula10/*",), sort_by=("cumtime",)) # NOTE: These imports are required to register the routes. They need to be imported after "app" is declared -import formula10.controller.race_controller # type: ignore +import formula10.controller.race_controller import formula10.controller.season_controller import formula10.controller.leaderboard_controller import formula10.controller.statistics_controller diff --git a/formula10/domain/template_model.py b/formula10/domain/template_model.py index 1804118..ed597b5 100644 --- a/formula10/domain/template_model.py +++ b/formula10/domain/template_model.py @@ -104,4 +104,4 @@ class TemplateModel(Model): def active_drivers_for_wdc_gained(self) -> List[Driver]: predicate: Callable[[Driver], bool] = lambda driver: driver.abbr not in self._wdc_gained_excluded_abbrs - return find_multiple_strict(predicate, self.all_drivers(include_none=False, include_inactive=False)) + return find_multiple_strict(predicate, self.all_drivers(include_none=False, include_inactive=True))