Expand description
Contest views over the published NFL snapshot, plus pure contest-list assembly.
Structs§
- Contest
Details - Everything the contest details page shows.
- Contest
Entrant - A league fantasy team entered in one contest.
pointsisSomewhen the contest’s NFL week resolves. - Contest
Row - One rendered contest-list row.
- Contest
Score Meta - Entry
Row - A rendered contest entry row. Pre-results,
rankandpointsareNoneandwinneris 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”.
- Official
Results - 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.
- Waiting
Row - A league team with no entry in an upcoming contest: the “still to enter” roll call under the entered list.
- Winner
Row - 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 offsetdtcarries, so callers pass Eastern. - format_
kickoff - A kickoff for display:
"Sun, Oct 5 · 1:00 PM". Formats in whatever offsetetcarries, 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
tois, 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.