Enhance prediction system with multi-day tournament support and auto-calculation

- 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 <noreply@anthropic.com>
This commit is contained in:
Samuel Enocsson
2025-08-13 08:59:24 +02:00
parent ef3881a0ac
commit 23412a8ea3
5 changed files with 2836 additions and 231 deletions
+3 -2
View File
@@ -9,10 +9,11 @@
},
"dependencies": {
"express": "^4.18.2",
"fs": "^0.0.1-security",
"puppeteer": "^21.0.0",
"fs": "^0.0.1-security"
"sqlite3": "^5.1.7"
},
"devDependencies": {
"nodemon": "^3.0.1"
}
}
}