Skip to content

Commit

Permalink
bw/groups/rooms: add logic to have different pattern and room number
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Jul 2, 2024
1 parent fe08268 commit 437130c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bundlewrap/groups/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
)

for i in ROOMS:
groups[f'saal{i}'] = {
if isinstance(i, tuple):
pattern, room_number = i
else:
pattern = room_number = i
groups[f'saal{pattern}'] = {
'member_patterns': {
rf'^tallycom{i}-[0-9+]$',
rf'^(encoder|mixer|minion){i}$',
rf'^tallycom{pattern}-[0-9+]$',
rf'^(encoder|mixer|minion){pattern}$',
},
'metadata': {
'room_number': i,
'room_number': room_number,
},
}

Expand Down

0 comments on commit 437130c

Please sign in to comment.