Skip to content

Commit 8e9d65e

Browse files
committed
Repair construction of group_hierarchy used for the customisation controls at /meeting/upcoming. Fixes ietf-tools#2940. Commit ready for merge.
- Legacy-Id: 17543
1 parent 43fd1cf commit 8e9d65e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/meeting/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,14 @@ def data_for_meetings_overview(meetings, interim_status=None):
288288
parent = parents.get(s.group.parent_id)
289289
if not parent:
290290
parent = s.group.parent
291-
parent.group_list = []
291+
parent.group_list = set()
292292
group_hierarchy.append(parent)
293+
parents[s.group.parent_id] = parent
293294

294-
parent.group_list.append(s.group)
295+
parent.group_list.add(s.group)
295296

296297
for p in parents.values():
298+
p.group_list = list(p.group_list)
297299
p.group_list.sort(key=lambda g: g.acronym)
298300

299301
# set some useful attributes

0 commit comments

Comments
 (0)