Skip to content

Commit

Permalink
add nested level in grouped_list if
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Sep 10, 2024
1 parent 7d993aa commit b57b486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/searchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _group_by_department(search_results: dict, department: list) -> dict:
for dept in department:
if dept.casefold() in str(result["hierarchyList"]).casefold():
# Initialize the group if not present
if dept not in dpt_grouped_result:
if dept not in dpt_grouped_result[term]:
dpt_grouped_result[term][dept] = []
dpt_grouped_result[term][dept].append(result)
else:
Expand Down

0 comments on commit b57b486

Please sign in to comment.