Skip to main content

Documentation Index

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

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

The standings table shows where every team sits in each group at any point during the season. Rankings update automatically the moment a referee finalises a match — no manual entry required. Each group is sorted by points, with a multi-step tiebreaker system resolving any dead heats.

How standings work

When a match is marked finalizado, the system immediately updates team_stats for both teams based on the result:
OutcomePoints awarded
Win3 points
Draw1 point each
Loss0 points
The following values are tracked per team per group per season:
  • PJ (played) — total matches completed
  • G (won) — wins
  • E (drawn) — draws
  • P (lost) — losses
  • GF (goals for) — total goals scored
  • GC (goals against) — total goals conceded
  • Pts (points) — accumulated league points
  • Yellow cards — total yellow cards received
  • Red cards — total red cards received
Card totals accumulate from individual match events and feed into the tiebreaker calculation.

Tiebreaker order

When teams are level on points, the system resolves ties differently depending on the number of tied teams: Two teams tied:
  1. Head-to-head points
  2. Overall goal difference (goals_for − goals_against)
  3. Disciplinary record (yellow_cards + red_cards × 3, lower is better)
  4. Goals scored
  5. Goals conceded (fewer is better)
  6. Team ID (deterministic fallback)
Three or more teams tied:
  1. Head-to-head points among the tied teams
  2. Disciplinary record (yellow_cards + red_cards × 3, lower is better)
  3. Head-to-head goal difference among the tied teams
  4. Head-to-head goals scored among the tied teams

Filtering by season and group

The standings page shows all groups for the currently active season by default. Use the season switcher to load classifications from any previous season. The API accepts a season_id query parameter; omitting it returns the active season automatically. Groups are displayed as separate tables on the same page. Each group table lists its teams in ranked order from first to last place.
Switch seasons using the season selector at the top of the page. Selecting a past season loads its final standings exactly as they were recorded, letting you compare results across years.

Reading the table

ColumnFull nameWhat it means
PJPartidos JugadosTotal finished matches
GGanadosWins
EEmpatadosDraws
PPerdidosLosses
GFGoles a FavorGoals scored
GCGoles en ContraGoals conceded
+/-Goal differenceGF minus GC
PtsPuntosTotal league points
Teams are ranked first by Pts, then by the tiebreaker chain described above. The team logo and name appear in the leftmost column. Teams that have not yet played any group-stage matches do not appear in the table until their first result is recorded.

Build docs developers (and LLMs) love