leaguemanager.models.baseline.participation.team_stats

Module Contents

Classes

TeamStats

The participation of an individual or team that can win or lose an Fixture.

Data

team_stats

API

class leaguemanager.models.baseline.participation.team_stats.TeamStats

Bases: leaguemanager.models.base.ParticipationBase

The participation of an individual or team that can win or lose an Fixture.

Each team entity that is participating in an Fixture has a TeamStats that represents where scores and stats are expressed about the team’s performance in that given Fixture.

Attributes: id (UUID): Inherited from UUIDAuditBase season_id (UUID): ForeignKey to Season. fixture_id (UUID): ForeignKey to Fixture. label (str): Description of TeamStats (i.e., “Team A, Week 2, Sunday Softball Div 2”, etc…) outcome (str): Whether result of Team was a “win”, “loss”, “tie”, or “undecided”. score_for (int): The total points scored by the Team. score_against (int): The total poinst scored against the Team. alignment (str): Whether the Team is “home” or “away” (one of those values). fixture_standing_points (int): The number of points from the results of this fixture. standing_points (int): The number of total points during the competition. created_at (datetime): Inherited from UUIDAuditBase updated_at (datetime): Inherited from UUIDAuditBase

season_id: uuid.UUID | None

‘field(…)’

fixture_id: uuid.UUID | None

‘field(…)’

label: str | None

‘field(…)’

outcome: str | None

‘field(…)’

score_for: int | None

‘field(…)’

score_against: int | None

‘field(…)’

alignment: str | None

‘field(…)’

fixture_standing_points: int | None

‘field(…)’

standing_points: int | None

‘field(…)’

leaguemanager.models.baseline.participation.team_stats.team_stats

‘Table(…)’