Misc cruft -- filtering, pagination tests, etc.

This commit is contained in:
Jack Kingsman committed 2026-02-24 21:15:49 -08:00
1 parent 684724913f
commit 1c2fb148bc
6 files changed
+210 -11

No files matched your search

+7
View File
@@ -38,6 +38,13 @@ async def lifespan(app: FastAPI):
await db.connect()
logger.info("Database connected")
# Ensure default channels exist in the database even before the radio
# connects. Without this, a fresh or disconnected instance would return
# zero channels from GET /channels until the first successful radio sync.
from app.radio_sync import ensure_default_channels
await ensure_default_channels()
try:
await radio_manager.connect()
logger.info("Connected to radio")