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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user