fix: wire show_day/show_hour config into API, simplify AddTrackRequest

- create_app now accepts show_day/show_hour params instead of
  hardcoding Wednesday 22:00
- main.py passes config values through to create_app
- Removed soundcloud_url from AddTrackRequest (not implemented);
  track_id is now required

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-12 01:46:23 -04:00
parent 485f0c1e35
commit c88826ac4d
3 changed files with 737 additions and 9 deletions

View File

@@ -33,7 +33,13 @@ def run() -> None:
poll_interval=settings.poll_interval_seconds,
)
app = create_app(db=db, poller=poller, admin_token=settings.admin_token)
app = create_app(
db=db,
poller=poller,
admin_token=settings.admin_token,
show_day=settings.show_day,
show_hour=settings.show_hour,
)
@app.on_event("startup")
async def start_poller():