Skip to content

Commit

Permalink
fix: virtual items not affect broadcast time
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Nov 23, 2024
1 parent 7b3efae commit d4db899
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/api/rundown/get_rundown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d4db899

Please sign in to comment.