Bridzik.get_standings fix

This commit is contained in:
Jakub Senderák
2020-04-21 13:41:45 +02:00
parent df52e6ce4b
commit 357d36b89a
+1 -4
View File
@@ -152,10 +152,7 @@ class Series():
return len(self.rounds) == 8 and self.get_last_round().is_completed()
def get_standings(self):
standings = []
for round in self.rounds:
if round.is_completed():
standings.append(round.get_points_summary())
return [r.get_points_summary() for r in self.rounds if r.is_completed()]
def get_last_round(self):
return self.rounds[-1] if self.rounds else None