Skip to content

betting_combat.schemas.tables.stats

stats.py — the stats tables: the raw facts each source records, on our ids, nothing computed.

RoundStatsTable rounds (bout_id, round, fighter_id) a ``RoundStat``
LiveRoundsTable live_rounds (bout_id, captured_at, round, fighter_id) a ``LiveRound``
LiveTotalsTable live_totals (bout_id, captured_at, fighter_id) a ``LiveTotal``
SnapshotsTable snapshots (bout_id, captured_at, kind) a ``Snapshot`` (+ the reading, raw)
FightEventsTable fight_events (bout_id, kind, round, source) a ``FightEvent``
ScorecardsTable scorecards (bout_id, round, judge) a ``Scorecard``
OddsTable odds (source, odds_key, observed_at) an ``Odds``
LinePathsTable line_paths (source, bout_id, fighter_id) a ``LinePath``
CareersTable careers (fighter_id, date, opponent_name) a ``CareerFight``
RankingsTable rankings (date, board, division, fighter_id) a ``Ranking``

Classes

CareersTable

Bases: Stored

One fight of a pro career.

FightEventsTable

Bases: Stored

A moment of a fight as one source told it.

LinePathsTable

Bases: Stored

One fighter’s line in one bout, open to close.

LiveRoundsTable

Bases: _Line, Stored

A fighter’s line in one round as one live reading had it.

LiveTotalsTable

Bases: Stored

A fighter’s running fight totals at one live reading (Cito’s liveStats).

OddsTable

Bases: Stored

One book’s price for one outcome as seen.

RankingsTable

Bases: Stored

A fighter’s place on one board on one day.

RoundStatsTable

Bases: _Line, Stored

A fighter’s official line in one round.

ScorecardsTable

Bases: Stored

One judge’s score of one round.

SnapshotsTable

Bases: Stored

One live reading of a bout, and the reading itself as the source sent it (payload).