File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ def allocations(allocations_definition):
277277 {
278278 'event' : Event (
279279 name = event ,
280- duration = 0 ,
280+ duration = details [ 'duration' ] ,
281281 demand = 0 ,
282282 tags = details ['tags' ]),
283283 'slot' : Slot (
@@ -286,9 +286,9 @@ def allocations(allocations_definition):
286286 details ['day' ],
287287 datetime .min .time ()) +
288288 timedelta (seconds = details ['starts_at' ])),
289- duration = 0 ,
289+ duration = details [ 'duration' ] ,
290290 session = (f'{ details ["day" ]} { details ["session" ]} ' ),
291- capacity = 0 )
291+ capacity = - 1 )
292292 }
293293 for allocation in allocations_definition
294294 for event , details in allocation .items ()]
@@ -301,7 +301,7 @@ def unbounded(unbound_definition, timetable):
301301 {
302302 'event' : Event (
303303 name = event ,
304- duration = 0 ,
304+ duration = details [ 'duration' ] ,
305305 demand = 0 ,
306306 tags = [day , venue ]),
307307 'slot' : Slot (
@@ -310,7 +310,7 @@ def unbounded(unbound_definition, timetable):
310310 day ,
311311 datetime .min .time ()) +
312312 timedelta (seconds = details ['starts_at' ])),
313- duration = 0 ,
313+ duration = details [ 'duration' ] ,
314314 session = f'{ day } unbound' ,
315315 capacity = 0 )
316316 }
You can’t perform that action at this time.
0 commit comments