Adds the new shows admin screen and drives schedule from it

This commit is contained in:
2026-06-22 04:19:51 +00:00
parent e627fe3637
commit eb9a00f21a
28 changed files with 546 additions and 54 deletions
+1
View File
@@ -89,6 +89,7 @@ async def update_show(
# Replace all schedule slots
for sched in show.schedules:
await session.delete(sched)
await session.flush() # execute deletes before inserts to avoid UNIQUE conflict
for slot in payload.schedules:
session.add(ShowSchedule(show_id=show.id, **slot.model_dump()))