mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 09:58:23 +02:00
More WEI tests, > 97 % coverage
This commit is contained in:
@ -25,9 +25,7 @@ class WEISurveyInformation:
|
||||
If the algorithm ran, return the prefered bus according to the survey.
|
||||
In the other case, return None.
|
||||
"""
|
||||
if not self.valid:
|
||||
return None
|
||||
return Bus.objects.get(pk=self.selected_bus_pk)
|
||||
return Bus.objects.get(pk=self.selected_bus_pk) if self.valid else None
|
||||
|
||||
def save(self, registration) -> None:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user