Hotfix for #4408
This commit is contained in:
parent
f532a60b36
commit
85903dbb44
@ -28,6 +28,7 @@ def get_flat_tree(all_data: AllData, parent_id: int = 0) -> List[Dict[str, Any]]
|
||||
|
||||
# Build a dict from an item_id to all its children
|
||||
children: Dict[int, List[int]] = defaultdict(list)
|
||||
if "agenda/item" in all_data:
|
||||
for item in sorted(
|
||||
all_data["agenda/item"].values(), key=lambda item: item["weight"]
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user