From 23412a8ea38e4980a82671b8ec5bad5c8e811792 Mon Sep 17 00:00:00 2001 From: Samuel Enocsson Date: Wed, 13 Aug 2025 08:59:24 +0200 Subject: [PATCH] Enhance prediction system with multi-day tournament support and auto-calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix parseDate function to handle multi-day tournament formats (e.g., "2-Sep to 3-Sep-2023") - Integrate PDGA update date simulation using 2nd Tuesday cutoffs for accurate predictions - Calculate and display predictions automatically from database on page load - Update rating calculation to use proper PDGA timing windows (12/24 months before update date) - Improve date parsing regex to correctly extract start dates from tournament ranges - Include updated player list in pdga-numbers.txt šŸ¤– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- index.html | 368 ++++++++--- package-lock.json | 1165 +++++++++++++++++++++++++++++++++- package.json | 5 +- pdga-numbers.txt | 3 +- server.js | 1526 ++++++++++++++++++++++++++++++++++++++++----- 5 files changed, 2836 insertions(+), 231 deletions(-) diff --git a/index.html b/index.html index 351662f..19611b9 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ PDGA Ratings +

PDGA Player Ratings

- āš™ + Load All +