From d4db8995f3f2d45a3f4db8ff4a8f774157b806fb Mon Sep 17 00:00:00 2001 From: Martastain Date: Sat, 23 Nov 2024 23:31:06 +0100 Subject: [PATCH] fix: virtual items not affect broadcast time --- backend/api/rundown/get_rundown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/api/rundown/get_rundown.py b/backend/api/rundown/get_rundown.py index fc6c784..0c33c38 100644 --- a/backend/api/rundown/get_rundown.py +++ b/backend/api/rundown/get_rundown.py @@ -226,7 +226,8 @@ async def get_rundown(request: RundownRequestModel) -> RundownResponseModel: if not last_event.duration: last_event.broadcast_time = ts_broadcast ts_scheduled += duration - ts_broadcast += duration + if row.item_role not in ["placeholder", "lead_in", "lead_out"]: + ts_broadcast += duration last_event.duration += duration last_event.is_empty = False