Skip to main content

Module service

Module service 

Source
Expand description

The entry page’s data: the structs the template renders and their construction.

Structs§

EntryPage
EntryPreview
The owner’s pre-kickoff lineup review: the scored page’s skeleton carrying what matters before play — salaries and the slate schedule.
GameLine
The game-score line for a row: both teams with their (optional) scores and which side is the pick’s team, for bolding.
Ownership
Roster ownership across a contest’s lineups: the fraction of lineups that include each player and each team defense.
PickInfo
Picks
The nine scored lineup rows and their total.
PreviewRow
One preview row: the slot and who fills it, None when the slate has no priced row for the pick.
ScoreMeta
SlotRow
One lineup row: a slot label, who filled it, and how they scored.

Enums§

EntryView
Which lineup page a viewer gets.
PickStats

Constants§

SALARY_CAP
The salary cap for a nine-slot FanDuel-style lineup.

Functions§

build_picks
build_preview
Preview rows in roster order, plus the total salary spent. Game scores are stripped: nothing has been played from this entry’s point of view.
compute_ownership
Count each pick across all lineups and divide by the lineup count.
game_line
The slate game the given team plays in, as a display line. None when no slate game features the team — the row falls back to its matchup text.
page