fix: Make psycopg2 optional for Flask/Werkzeug compatibility

- Bump Flask requirement to >=3.0.0 (required for Werkzeug 3.x)
- Make psycopg2 import conditional in routes/adsb.py and utils/adsb_history.py
- ADS-B history features gracefully disabled when PostgreSQL libs unavailable

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-29 22:19:14 +00:00
parent 7b847e0541
commit 872cc806eb
4 changed files with 493 additions and 476 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ classifiers = [
"Topic :: System :: Networking :: Monitoring",
]
dependencies = [
"flask>=2.0.0",
"flask>=3.0.0",
"skyfield>=1.45",
"pyserial>=3.5",
"Werkzeug>=3.1.5",