Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526_Consulta/llms.txt

Use this file to discover all available pages before exploring further.

The statistics page aggregates data from all finished matches in a season into three sections: global totals, team rankings, and individual player rankings. A fourth section shows the prediction leaderboard (porra). All data is scoped to the selected season and recomputed on the fly.

Accessing statistics

Navigate to Statistics in the top navigation bar. The page loads data for the currently active season. Use the season picker to view statistics for any past season — the season_id query parameter controls which season is loaded.

Global statistics

Six summary figures appear at the top of the page, each drawn from finished matches only.
StatWhat it counts
Matches playedTotal number of finished matches in the season
Total goalsSum of all home and away goals across finished matches
Average goals per matchTotal goals ÷ matches played, rounded to two decimal places
Clean sheetsFinished matches where at least one team scored zero goals
Yellow cardsTotal yellow cards issued across all teams in the season
Red cardsTotal red cards issued across all teams in the season
Global card counts come from the team_stats table, which is updated transactionally each time a card event is recorded during a match.

Team rankings

Five ranked lists show the top 5 teams in each category. Click a team name to open its profile page.

Most wins

Teams ranked by the number of matches won. Sorted descending.

Most losses

Teams ranked by the number of matches lost. Sorted descending.

Most draws

Teams ranked by the number of drawn matches. Sorted descending.

Best offense

Teams ranked by goals scored (goals_for). Sorted descending.

Best defense

Teams ranked by goals conceded (goals_against). Sorted ascending — fewer is better.
Each list shows the team’s logo, name, and the relevant numeric value.

Individual player rankings

Three ranked lists show the top 5 players in each category. Click a player name to open their profile page.
RankingDescription
Top scorersPlayers with the most goals in the season. Penalty shootout goals are excluded — only regular match goals count.
Most yellow cardsPlayers with the most yellow cards. Only players with at least one yellow card appear.
Most red cardsPlayers with the most red cards. Only players with at least one red card appear.
Each entry shows the player’s photo (or a generic placeholder), name, team, and count.
Individual statistics are derived from the player_stats table. Stats are updated in real time as referees record events during live matches.

User prediction leaderboard (porra)

Below the player rankings, a leaderboard shows the top 10 users ranked by prediction points earned in the season. Your own username is highlighted if you appear in the top 10.
ColumnDescription
PositionRank within the season (1st–10th)
UsernameFirst letter shown as an avatar
PointsTotal correct predictions in the season
Users who have not made any predictions show 0 points. See Match prediction voting for details on how points are earned.

Season filtering

All statistics respect the season_id query parameter. When no season is specified, the platform automatically uses the season currently marked as active.
Share a direct link to a specific season’s statistics by copying the URL after selecting a season — it will include ?season_id=<id>.

Build docs developers (and LLMs) love