Skip to content

Commit e22a009

Browse files
committed
Bugfix in reachable flows
1 parent 8f47e84 commit e22a009

File tree

1 file changed

+4
-2
lines changed
  • packages/reporting-lib/src/reporting_lib

1 file changed

+4
-2
lines changed

packages/reporting-lib/src/reporting_lib/htmlgen.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def parse_depscan_report(self, depscan_report):
647647
continue
648648

649649
if (
650-
current_location in [self.REACHABLE_FLOWS_REACHABLE_PACKAGES, self.REACHABLE_FLOWS_DATA]
650+
current_location in [self.REACHABLE_FLOWS_REACHABLE_PACKAGES, self.REACHABLE_FLOWS_DATA, self.REACHABLE_FLOWS_RECOMMENDATION]
651651
and line == ""
652652
):
653653
cells = [
@@ -752,7 +752,7 @@ def parse_depscan_report(self, depscan_report):
752752
continue
753753

754754
if (
755-
current_location in [self.NON_REACHABLE_FLOWS_REACHABLE_PACKAGES, self.NON_REACHABLE_FLOWS_DATA]
755+
current_location in [self.NON_REACHABLE_FLOWS_REACHABLE_PACKAGES, self.NON_REACHABLE_FLOWS_DATA, self.NON_REACHABLE_FLOWS_RECOMMENDATION]
756756
and line == ""
757757
):
758758
cells = [
@@ -1668,6 +1668,8 @@ def generate_section_reachable_flows(
16681668

16691669
if recommendation != "":
16701670
current_content = f"""{summary}<br><br><div class="alert alert-info" role="alert">{recommendation}</div>"""
1671+
else:
1672+
current_content = summary
16711673

16721674
if tree_is_from_html is False:
16731675
current_content = html.escape(current_content)

0 commit comments

Comments
 (0)