From 19e94da6b6d182e653d1252b0d23109b0951ae70 Mon Sep 17 00:00:00 2001 From: Kelly McDonald Date: Tue, 20 Apr 2021 11:11:11 -0400 Subject: [PATCH] Fix slight bug in expansion code, a non-expanded node was causing all parent levels to not expand. --- crc/api/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/api/file.py b/crc/api/file.py index edbd9cf8..1fd8349a 100644 --- a/crc/api/file.py +++ b/crc/api/file.py @@ -28,7 +28,7 @@ def ensure_exists(output,categories,expanded): if item.level == currentitem: found = True item.filecount = item.filecount + 1 - item.expanded = expanded + item.expanded = expanded | item.expanded ensure_exists(item.children,categories[1:],expanded) if not found: newlevel = DocumentDirectory(level=currentitem)