Skip to main content

Module store

Module store 

Source

Enums§

EntriesError

Functions§

by_contest
One contest’s entries within one league: each entering fantasy team with its total lineup. Fantasy teams without an entry in this contest do not appear. Row order is by fantasy team id; callers sort for display.
by_fantasy_team
Every fantasy team in a league with its contest entries, lineups parsed and total. Entry-less fantasy teams appear with empty entries.
by_id
One entry with the context its page needs: lineup, contest, league, and owning fantasy team. None for an unknown id.
entry_ids_for_team
Each of a fantasy team’s entries: slate id → entry id, for linking straight to a lineup.
for_fantasy_team
One fantasy team in a league with its contest entries, lineups parsed and typed. None when the id is not in this league.
league_id_of
The league an entry belongs to, via its fantasy team. None for an unknown entry id.
lineup_for_team
The team’s committed entry in a slate: its id and its lineup. The lineup is None when the stored slots don’t parse (corrupt or incomplete), which still marks the entry as existing.
upsert_with_lineup
Upsert the (slate, fantasy team) entry and replace its slots with the lineup’s nine. Runs on the caller’s write connection, inside its transaction.