Skip to main content

Module service

Module service 

Source
Expand description

Contest views over the published NFL snapshot, plus pure contest-list assembly.

Structs§

ContestDetails
Everything the contest details page shows.
ContestEntrant
A league fantasy team entered in one contest. points is Some when the contest’s NFL week resolves.
ContestRow
One rendered contest-list row.
ContestScoreMeta
EntryRow
A rendered contest entry row. Pre-results, rank and points are None and winner is false on every row.
GameRow
A slate game for display: its id, matchup, and Eastern kickoff.
Kickoff
An upcoming contest’s kickoff, as the middle column’s headline and sub-line: “Sunday” over “1:00pm ET”.
OfficialResults
Upcoming
The pre-kickoff header: entries stay open until the slate’s first kickoff, so the page leads with when that is and how long is left.
WaitingRow
A league team with no entry in an upcoming contest: the “still to enter” roll call under the entered list.
WinnerRow
A contest’s winning fantasy team, for display.

Functions§

contest_list
Fold contests and scored fantasy teams into display rows, newest first. Winners show only once a contest has finished.
details_for_league
entrants
format_day
A day for display: "Sun, Oct 5". Formats in whatever offset dt carries, so callers pass Eastern.
format_kickoff
A kickoff for display: "Sun, Oct 5 · 1:00 PM". Formats in whatever offset et carries, so callers pass Eastern.
game_rows
Display rows for a slate, chronological; games with no kickoff sort last.
listed_contests
official_contest_weeks
rank_contest_entries
Rank one contest’s entrants. Results show only when every entrant scored and some score beat zero — the gate the contest list applies to its winner column. Otherwise rows keep case-insensitive name order with no rank, points, or winner.
rank_live_entries
Rank contest entries against the process-local Tank01 snapshot.
time_until
How far away to is, at the coarsest sensible unit: minutes under an hour, hours under 36 hours, calendar days thereafter. Calendar-day counts use Eastern dates. Kickoff is a deadline, so once it arrives the answer stops counting rather than going negative.