Skip to content

Commit d4db899

Browse files
committed
fix: virtual items not affect broadcast time
1 parent 7b3efae commit d4db899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/api/rundown/get_rundown.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ async def get_rundown(request: RundownRequestModel) -> RundownResponseModel:
226226
if not last_event.duration:
227227
last_event.broadcast_time = ts_broadcast
228228
ts_scheduled += duration
229-
ts_broadcast += duration
229+
if row.item_role not in ["placeholder", "lead_in", "lead_out"]:
230+
ts_broadcast += duration
230231
last_event.duration += duration
231232
last_event.is_empty = False
232233

0 commit comments

Comments
 (0)