Bug: Fix missing inactive drivers in season guesses

This commit is contained in:
2024-12-08 17:22:14 +01:00
parent 61d247508f
commit 9cdd7267db
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))