|
|
|
@ -70,6 +70,7 @@ class GroupStage(models.Model): |
|
|
|
total1 = scores1[0] |
|
|
|
total1 = scores1[0] |
|
|
|
total2 = scores2[0] |
|
|
|
total2 = scores2[0] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ts1.team_registration in gs_teams and ts2.team_registration in gs_teams: |
|
|
|
team1 = gs_teams[ts1.team_registration] |
|
|
|
team1 = gs_teams[ts1.team_registration] |
|
|
|
team2 = gs_teams[ts2.team_registration] |
|
|
|
team2 = gs_teams[ts2.team_registration] |
|
|
|
team1.diff = total1 - total2 |
|
|
|
team1.diff = total1 - total2 |
|
|
|
@ -116,7 +117,10 @@ class LiveGroupStage: |
|
|
|
class GroupStageTeam: |
|
|
|
class GroupStageTeam: |
|
|
|
def __init__(self, team_registration): |
|
|
|
def __init__(self, team_registration): |
|
|
|
self.names = team_registration.team_names() |
|
|
|
self.names = team_registration.team_names() |
|
|
|
|
|
|
|
if team_registration.group_stage_position: |
|
|
|
self.position = team_registration.group_stage_position |
|
|
|
self.position = team_registration.group_stage_position |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
self.position = 0 |
|
|
|
self.wins = 0 |
|
|
|
self.wins = 0 |
|
|
|
self.losses = 0 |
|
|
|
self.losses = 0 |
|
|
|
self.diff = 0 |
|
|
|
self.diff = 0 |
|
|
|
|