The porra system lets you predict the result of every upcoming match. Correct predictions earn points that accumulate on a season leaderboard. You can track your score, ranking, and full voting history from the statistics page.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.
How voting works
Find a pending match
Open the match calendar or a match’s detail page. The voting widget appears on any match with status
pendiente (pending) where both the home and away teams have been assigned.Cast your vote
Select one of three options:
- Local — home team wins
- Empate — draw
- Visitante — away team wins
Change your vote if needed
You can update your prediction at any time while the match is still pending. Submitting a new vote replaces your previous one — the system uses an upsert so only your latest vote is stored.
Requirements to vote
- You must have an account and be logged in.
- The match must have status
pendiente. - Both the home team and away team must be assigned to the match. Knockout fixtures that show a placeholder (e.g. “Winner Group A”) cannot be voted on until the teams are confirmed.
Vote options
| Option | Meaning |
|---|---|
local | Home team wins |
empate | The match ends in a draw |
visitante | Away team wins |
Vote counts on the match card
The match card and detail page display a live breakdown of how many users voted for each outcome. These counts update as soon as any user casts or changes their vote.| Displayed count | Description |
|---|---|
| Home votes | Users who voted local |
| Draw votes | Users who voted empate |
| Away votes | Users who voted visitante |
| Total | Sum of all three |
Earning points
When a referee finalises a match, the system:- Determines the actual result (
local,empate, orvisitante) from the final score. - Marks every vote that matches the result with
points_awarded = 1. - Adds 1 point to the
user_pointstable for each correct voter, scoped to the match’s season.
Points are awarded atomically in the same database transaction that finalises the match, so your score updates the moment the match is closed.
Voting closes when the match starts
The moment a referee changes a match’s status frompendiente to en_curso (in progress), voting is locked. Any attempt to submit a vote on a non-pending match is rejected with an error.
Your prediction stats
When you are logged in, you can view your personal prediction record on the Statistics page under your account. Your stats include:| Stat | Description |
|---|---|
| Total points | All points earned from correct predictions in the season |
| Global rank | Your position among all users in the season leaderboard |
| Vote history | Your last 20 predictions for the season, showing the match, your vote, the actual result, and whether you earned a point |
| Column | Description |
|---|---|
| Match | Home team vs away team and date |
| Your prediction | local, empate, or visitante |
| Actual result | The final outcome once the match is finished, or pendiente if still to play |
| Points | 1 if your prediction was correct, 0 otherwise |
Season leaderboard
The top 10 users by points appear on the statistics page. Your row is highlighted so you can quickly spot your position even when scrolling.The leaderboard is filtered to users with the
user role. Admin and referee accounts are excluded.Season scope
All votes and points are recorded per season. Points earned in one season do not carry over to the next. When a new season starts, everyone begins from zero.Related pages
Match calendar
Find pending matches and open the voting widget.
Statistics
View the season leaderboard and your full prediction history.