fix: migrations, auth, providers health check, E2E tests, remove neko-sama
- Add proper Alembic initial migration (0001_initial_schema.py) - Migrate refresh tokens from JSON file to SQLite (RefreshTokenTable) - Remove Neko-Sama provider entirely (redirects to Gupy, not a host) - Fix provider health check always showing UNKNOWN - Run check_all_health() on startup - Fix POST /providers/health/check background task bug - Add HTMX refresh after manual health check trigger - Fix anime search relevance scoring with MIN_RELEVANCE_THRESHOLD=0.5 - Replace bare 'except:' with 'except Exception:' across codebase - Add Playwright E2E test suite (12 tests, auth setup, helpers) - Fix toast container blocking clicks via pointer-events: none - Remove obsolete Jest/Vite test files and config - Clean up obsolete test_watchlist scripts - Update sonarr model comment for active providers
This commit is contained in:
@@ -5,6 +5,7 @@ Main application file with startup configuration and middleware.
|
||||
All API routes have been migrated to app/routers/ for better maintainability.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import uuid
|
||||
from datetime import datetime
|
||||
@@ -42,6 +43,8 @@ app.add_middleware(
|
||||
"http://192.168.1.204",
|
||||
"http://192.168.1.200:3000",
|
||||
"http://192.168.1.200",
|
||||
"http://192.168.5.127:3000",
|
||||
"http://192.168.5.127",
|
||||
],
|
||||
allow_credentials=True,
|
||||
allow_methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
|
||||
@@ -82,6 +85,11 @@ async def startup_event():
|
||||
from app.auto_download_scheduler import auto_download_scheduler
|
||||
|
||||
auto_download_scheduler.start()
|
||||
|
||||
# Run initial provider health check in background
|
||||
from app.providers_manager import providers_manager
|
||||
|
||||
asyncio.create_task(providers_manager.check_all_health())
|
||||
logger.info("Application started: Sonarr handler and scheduler initialized")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user