Skip to content

Commit

Permalink
add dict level
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer authored and luisssguilherme committed Aug 29, 2024
1 parent 9a36623 commit 2d9aca9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/notification/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ def convert_report_to_dataframe(self) -> pd.DataFrame:
for search in self.search_report:
if search["header"] is not None:
del_header = False
for group, terms in search["result"].items():
if not "single_group" in group:

for group, search_result in search["result"].items():
if group is not "single_group":
del_single_group = False
for dpt,_ in terms.items():
if not "single_department" in dpt:
del_single_department = False
for _, term_results in search_result.items():
for dpt,_ in term_results.items():
if dpt is not "single_department":
del_single_department = False

# Drop empty or default columns
if del_header:
Expand Down

0 comments on commit 2d9aca9

Please sign in to comment.