The Golf DraftDetailed Admin
Checking sign in…
Draft League Results Profile Rules Admin Hub Detailed Admin

Tournament Readiness

Checking whether the game is ready for players…

CHECKING
Simple setup guide

What do I press now?

Loading your tournament setup and checking what still needs doing…

Next action
Checking readiness…

Tournament

First tee / lock

Players / entries

Normal monthly flow: confirm tournament details, press setup/refresh, fix any red items, confirm first tee when tee times are official, then monitor results once play starts.

Admin Control

Use this page for admin-only actions such as temporary password resets, event setup, future refresh tools, score corrections, and live-data operations.

Current status
Event Setup is now backed by live config storage. Password reset is live.
Next phase
Wire fetch, scoring, correction, and log tools into these admin sections.

One Button Major Setup

Full rebuild for the next/current major: field, stats, recent form, course history, active tournament, results cache, and hero image.
Terminal ready. Press the setup button above.

Tournament Launch Wizard

Use these buttons in order. Simple mode for setting up a major without needing to understand the individual scraper tools below.
1
Save event setup
Save tournament name, tee time, results source, refresh interval and cut penalty rules.
2
Find and test live results source
Discover the Flashscore event, save it to config, then test the parsed leaderboard rows.
3
Build player data
Refresh the field, stats, recent form, course history and active major context.
4
Fetch results now
Pull the current leaderboard into the cache so Results and League pages have fresh scoring.
5
Final setup check
Run the checklist. If anything important is missing, the output tells you what to fix.
Advanced tools
Original admin tools are still here, hidden by default.

Current Event Summary

Quick read-only overview of the currently saved event setup values.

Event Setup

These values are saved to the backend config and will drive future jobs and tournament prep tools.
It is normal for event code, first tee time, and results source URL to be blank until closer to the tournament. First tee time is treated as UK local time and is saved as a full date + time.

Auto Fetch Status

Monitor the scheduled live-fetch system and manually trigger or reset it when needed.
Clear Finished-Day State only removes the per-day completion marker. It does not clear your saved first tee time, tournament, or source URL.

Tournament Data Tools

Python-backed tools for major-field refreshes, PGA Tour stat updates, and missing image checks.
These buttons are designed to call Python server-side routes. The updater should back up draft_players.json, refresh the field and stats, then report missing headshots/card images separately. The current logo placeholder can stay as the general fallback for now; later you can switch the player-face placeholder path here without changing card logic.

Build Tournament

Paste Oddschecker text, fetch the confirmed DataGolf field, preview missing odds/images, then apply only after review.


          
This uses tournament_builder.py: DataGolf confirmed field controls who appears; pasted odds only order confirmed players and set tier/points.

Reset User Password

Generate a temporary password for an existing user without revealing the old one.
This tool is live and working. Use it when a user cannot access their account and needs a temporary password reset.

Operations Dashboard

Future admin tools are laid out below so this page can grow into a full tournament control centre.

Live Operations

Manual refresh actions, score rebuilds, and future job controls.
Planned tools:

• fetch latest results
• rebuild league scoring
• pause / resume refresh cycle
• view live job output
Refresh now Rebuild scores Logs

Corrections

Manual intervention area for bad source data or competition-specific admin decisions.
Planned tools:

• replacement player approval
• score correction override
• scrape failure fallback actions
Player fix Score override Replacement

League & User Lookup

Faster admin support for league issues, user checks, and saved team inspection.
Planned tools:

• search users
• search leagues
• inspect saved entries
• trace support issues quickly
User lookup League lookup Entry view
The next safe stage is to connect these sections to backend job routes and saved config values, rather than relying on placeholders or manual terminal steps.

League Commentary Brief

Generate a timestamped league-table log for NotebookLM, podcasts, WhatsApp summaries, or email updates.
Creates a saved text file and prints the full brief below. Generate it a few times during a round for timestamped changes.

        

Email, Invites & Password Reset

Connect Gmail, send league invites/newsletters, and help users reset passwords.

Email Builder

Open the dedicated newsletter builder with image upload, image picker, live preview, test send and campaign send.

Field Refresh / DataGolf Dry Run

Diagnostic-only check before running the existing destructive field refresh tools. This reads the current field, assets, pricing groups, and linked scripts without changing files.

Run this before using Full Refresh. Current known note: the field may still be around 91 players because only confirmed DataGolf players were originally imported.

Remote Field Preview

Checks the live DataGolf field URL and compares it with local draft_players.json. Preview only — no files changed.

Use this to confirm whether DataGolf now has 104 confirmed players while the local app still has 91.

Pricing & Group Rules

Edit live draft group names, order, price, field percentage/count and tie rules. Drag cards to reorder. Hide/delete groups while testing. The final rest group catches everyone left.

Field
Groups
Percent total
Last apply

Preview Reprice

Check who lands in each group before applying changes to the live field.

Click Preview Current Rules before Apply / Reprice Field.

Restore Pricing Backup

Recent draft_players.json backups from pricing changes. Restoring also resyncs front-end group sizes.

Load backups if you need to roll back a pricing change.
📱 Simple Admin