Skip to content

Commit d259865

Browse files
committed
Ensure allocation tags are unique
1 parent 50851ad commit d259865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scheduler/denormalise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def allocations(allocations_definition):
279279
name=event,
280280
duration=details['duration'],
281281
demand=0,
282-
tags=details['tags']),
282+
tags=details['tags'] + [details['day'], details['venue']]),
283283
'slot': Slot(
284284
venue=details['venue'],
285285
starts_at=(datetime.combine(
@@ -303,7 +303,7 @@ def unbounded(unbound_definition, timetable):
303303
name=event,
304304
duration=details['duration'],
305305
demand=0,
306-
tags=[day, venue]),
306+
tags=details['tags'] + [day, venue]),
307307
'slot': Slot(
308308
venue=venue,
309309
starts_at=(datetime.combine(

0 commit comments

Comments
 (0)