Bridzik.get_standings fix
This commit is contained in:
+1
-4
@@ -152,10 +152,7 @@ class Series():
|
|||||||
return len(self.rounds) == 8 and self.get_last_round().is_completed()
|
return len(self.rounds) == 8 and self.get_last_round().is_completed()
|
||||||
|
|
||||||
def get_standings(self):
|
def get_standings(self):
|
||||||
standings = []
|
return [r.get_points_summary() for r in self.rounds if r.is_completed()]
|
||||||
for round in self.rounds:
|
|
||||||
if round.is_completed():
|
|
||||||
standings.append(round.get_points_summary())
|
|
||||||
|
|
||||||
def get_last_round(self):
|
def get_last_round(self):
|
||||||
return self.rounds[-1] if self.rounds else None
|
return self.rounds[-1] if self.rounds else None
|
||||||
|
|||||||
Reference in New Issue
Block a user