@@ -92,13 +92,17 @@ def output_html(
9292
9393 # Chart configuration for product_pie
9494 product_pie .update_layout (
95- autosize = True , legend_orientation = "h" ,
95+ autosize = True ,
96+ legend_orientation = "h" ,
9697 )
9798 product_pie .update_traces (
9899 hoverinfo = "label+percent" ,
99100 textinfo = "value" ,
100101 textfont_size = 14 ,
101- marker = dict (colors = ["#d80032" , "#1a936f" ], line = dict (color = "white" , width = 2 ),),
102+ marker = dict (
103+ colors = ["#d80032" , "#1a936f" ],
104+ line = dict (color = "white" , width = 2 ),
105+ ),
102106 )
103107
104108 # dash graph2: Product CVE's Graph
@@ -117,7 +121,9 @@ def output_html(
117121 )
118122
119123 # Chart configuration for cve_bar
120- cve_bar .update_layout (yaxis_title = "Number of CVE's" ,)
124+ cve_bar .update_layout (
125+ yaxis_title = "Number of CVE's" ,
126+ )
121127
122128 all_paths = defaultdict (list )
123129
@@ -134,19 +140,34 @@ def output_html(
134140 hid = f"{ product_info .vendor } { product_info .product } { '' .join (product_info .version .split ('.' ))} "
135141
136142 new_cves = render_cves (
137- hid , cve_row , "NEW" , cve_by_remark [Remarks .NewFound ],
143+ hid ,
144+ cve_row ,
145+ "NEW" ,
146+ cve_by_remark [Remarks .NewFound ],
138147 )
139148 mitigated_cves = render_cves (
140- hid , cve_row , "MITIGATED" , cve_by_remark [Remarks .Mitigated ],
149+ hid ,
150+ cve_row ,
151+ "MITIGATED" ,
152+ cve_by_remark [Remarks .Mitigated ],
141153 )
142154 confirmed_cves = render_cves (
143- hid , cve_row , "CONFIRMED" , cve_by_remark [Remarks .Confirmed ],
155+ hid ,
156+ cve_row ,
157+ "CONFIRMED" ,
158+ cve_by_remark [Remarks .Confirmed ],
144159 )
145160 unexplored_cves = render_cves (
146- hid , cve_row , "UNEXPLORED" , cve_by_remark [Remarks .Unexplored ],
161+ hid ,
162+ cve_row ,
163+ "UNEXPLORED" ,
164+ cve_by_remark [Remarks .Unexplored ],
147165 )
148166 ignored_cves = render_cves (
149- hid , cve_row , "IGNORED" , cve_by_remark [Remarks .Ignored ],
167+ hid ,
168+ cve_row ,
169+ "IGNORED" ,
170+ cve_by_remark [Remarks .Ignored ],
150171 )
151172
152173 analysis_data = Counter (cve .severity for cve in cve_data ["cves" ])
@@ -173,7 +194,10 @@ def output_html(
173194 hoverinfo = "label+percent" ,
174195 textinfo = "value" ,
175196 textfont_size = 14 ,
176- marker = dict (colors = colors , line = dict (color = "white" , width = 2 ),),
197+ marker = dict (
198+ colors = colors ,
199+ line = dict (color = "white" , width = 2 ),
200+ ),
177201 )
178202 analysis_pie .update_layout (
179203 autosize = True ,
0 commit comments