How This App Works
Quick guide so you can run weekly games without getting lost.
Weekly Routine (Best Order)
- Go to Admin Games and open this weekβs game.
- Record attendance: bulk paste names or set individual statuses.
- Generate teams (auto balanced) or use manual teams.
- After the match, enter the final score in game edit.
- If cancelled/stopped, mark the game as abandoned.
- Check leaderboard to confirm wins and attendance updated.
What Each Page Is For
- / β games list (also auto-creates next Wednesday game if missing).
- /admin/games β main game management.
- /games/<id> β attendance and team actions for a game.
- /games/<id>/teams β view/generate balanced teams.
- /games/<id>/teams/manual β manual team split.
- /admin/players β manage players and attendance stats.
- /leaderboard β wins/draws/losses and attendance leaderboard.
- /import β import attendance from CSV.
Important Rules
- Abandoned games are excluded from stats and have no final scores.
- Only playing counts for attendance percentage.
- Attendance denominator is all past, non-abandoned games.
- Leaderboard is based on saved team assignments + final scores for the current year.
Attendance Formula
attendance % = (player playing count / total past non-abandoned games) Γ 100
Quick Troubleshooting
- Canβt open admin pages: log in at /login.
- Canβt generate teams: need at least 2 players marked playing.
- Stats look off: check whether a game was marked abandoned.
- Import name mismatch: make sure player aliases are consistent.
Full written guide is also in the repo: HOW_IT_WORKS.md.