• 2.31.0 b9ea727551

    2.31.0
    All checks were successful
    Build and push image / build-and-push (push) Successful in 1m58s
    Python FastAPI Jinja Linting / build (push) Successful in 29s
    Tests / pytest (push) Successful in 16s
    Stable

    johnsturgeon released this 2026-09-06 21:39:52 +02:00 | 91 commits to main since this release

    Expand {{ standings }} token in admin emails to a styled table

    What

    Adds a <!-- STANDINGS --> token to the admin custom-email composer. When present in the Markdown body, it expands to the current standings as an inline-styled HTML table that mirrors the /standings page — gray header, zebra rows, maroon names — styled inline so it survives email clients (no external CSS, no <style> block).

    No UI change to the compose page beyond one new row in the Markdown cheat sheet documenting the token.

    How

    • app/standings_email.py (new): standings_markdown(session) builds a Markdown pipe table from active players (same query/sort as /standings); style_email_table(html) injects inline styles into markdown-it's table output.
    • app/mailer.py: custom_email_body does the token substitution — it renders the standings fragment in isolation and styles it before the outer email template wraps everything in layout tables, so the styler never touches the presentation tables. send_custom_email forwards the pre-built markdown.
    • Preview (v2.py) and background send (send_admin_email.py) each build the standings lazily — only when a message uses the token — so a token-free batch never depends on a current week existing (which would raise between seasons).

    Testing

    • tests/test_mailer.py: token present → styled <table>/<th>; token absent → body unchanged.
    • flake8 clean, pylint 10.00/10.
    • Note: the 7 test_admin_email_routes.py failures are pre-existing on main, unrelated to this change.

    resolves #233

    Issues closed

    • #233 Create a form page for sending out the standings
    • #178 Have body of standings email be 'proper' HTML body of real standings

    Pull request: #483

    Downloads
  • 2.30.1 b87cd13184

    2.30.1
    All checks were successful
    Build and push image / build-and-push (push) Successful in 2m2s
    Python FastAPI Jinja Linting / build (push) Successful in 30s
    Tests / pytest (push) Successful in 16s
    Stable

    johnsturgeon released this 2026-09-06 19:53:12 +02:00 | 93 commits to main since this release

    Make drop_team_data_source migration idempotent

    resolves #480

    Problem

    Production crashed running migrations:

    sqlalchemy.exc.ProgrammingError: (psycopg.errors.UndefinedColumn)
    column "data_source" of relation "team" does not exist
    [SQL: ALTER TABLE team DROP COLUMN data_source]
    

    The migration a390332fa722 ran an unconditional op.drop_column('team', 'data_source'), but no migration in the chain ever creates that column. The Alembic baseline (0c2ed4448b99) was auto-generated on 2026-08-31, after the Tank01 refactor (302663c, 2026-08-28) removed data_source from the Team model — so the baseline codifies a team table without the column. Any database built from the chain creates team without data_source and then tries to drop it → crash.

    Fix

    Use ALTER TABLE team DROP COLUMN IF EXISTS data_source, which:

    • drops the column on pre-baseline snapshots that still carry the ESPN-era field, and
    • is a safe no-op on any database built from the current baseline.

    Version bumped 2.30.0 → 2.30.1. Tests: 314 passed, pylint 10.00/10.

    🤖 Generated with Claude Code

    Issues closed

    • #480 Migration a390332fa722 crashes: drops non-existent team.data_source column

    Pull request: #479

    Downloads
  • 2.30.0 ed98b9d5cb

    2.30.0
    All checks were successful
    Build and push image / build-and-push (push) Successful in 1m56s
    Python FastAPI Jinja Linting / build (push) Successful in 30s
    Tests / pytest (push) Successful in 15s
    Stable

    johnsturgeon released this 2026-09-06 19:36:31 +02:00 | 95 commits to main since this release

    Create a release on every merge to main

    Adds a Forgejo workflow that cuts a release + tag whenever a PR merges to main.

    • Fires on pull_request: closed when merged == true
    • Reads the version from pyproject.toml at the merge commit (via the /raw/ API, no checkout)
    • Tag = plain version, so git tag / image tag / pyproject version are one string
    • Release notes = PR title + body + a bulleted list of issues closed (scanned from the PR body and its commit messages for resolves/closes/fixes keywords)
    • Skips (green, with a warning) if a release for that version already exists, covering a PR that forgot to bump

    Note: this PR itself will not produce a release — the closed-PR event runs the workflow as it exists on main, which does not have the file until after this lands. The first real release will be the next PR merged after this.

    resolves #477

    🤖 Generated with Claude Code

    Issues closed

    • #477 Create a new 'release' every time a PR lands

    Pull request: #478

    Downloads
  • v1.4.8 add066c98e

    v1.4.8 Stable

    Ghost released this 2025-02-08 02:42:07 +01:00 | 306 commits to main since this release

    What's Changed

    Full Changelog: https://github.com/TheGreatFootballPool/tgfp-web/compare/v1.4.5...v1.4.8

    Downloads
  • v1.4.7 e51c9264c4

    Ghost released this 2025-02-08 02:37:04 +01:00 | 308 commits to main since this release

    Downloads
  • v1.4.5 c5525ff1e8

    v1.4.5 Stable

    Ghost released this 2025-01-12 17:23:52 +01:00 | 310 commits to main since this release

    Downloads
  • v1.4.4 5c55fa068d

    Ghost released this 2025-01-08 23:07:14 +01:00 | 312 commits to main since this release

    Downloads
  • v1.4.2 8e79fb648e

    Ghost released this 2024-09-15 17:14:38 +02:00 | 315 commits to main since this release

    Downloads
  • v1.4.1 212a80bae0

    v1.4.1 Stable

    Ghost released this 2024-09-15 04:25:29 +02:00 | 317 commits to main since this release

    Downloads
  • v1.4.0 3559c6b420

    Ghost released this 2024-09-15 00:51:24 +02:00 | 319 commits to main since this release

    Downloads