aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/srtgui/reports.py17
-rw-r--r--lib/srtgui/tables.py2
2 files changed, 7 insertions, 12 deletions
diff --git a/lib/srtgui/reports.py b/lib/srtgui/reports.py
index 297b885a..572e45bf 100644
--- a/lib/srtgui/reports.py
+++ b/lib/srtgui/reports.py
@@ -824,7 +824,7 @@ class CvesReport(Report):
'%s %s' % (cve.cvssV3_baseScore,cve.cvssV3_baseSeverity),
cve.get_publish_text,
vulnerability.name if vulnerability else '<no_vulnerability>',
- investigation.name if investigation else '',
+ investigation.name if investigation else '<no_investigation>',
investigation.product.long_name if investigation and investigation.product else '<no_product>',
investigation.get_priority_text if investigation else '',
investigation.get_status_text if investigation else '',
@@ -836,24 +836,19 @@ class CvesReport(Report):
])
else:
writer.writerow([
- cve.name,
cve.get_status_text,
- '%s %s' % (cve.recommend,cve.recommend_list),
- cve.cve_data_type,
- cve.cve_data_format,
- cve.cve_data_version,
'%s %s' % (cve.cvssV3_baseScore,cve.cvssV3_baseSeverity),
- '%s %s' % (cve.cvssV2_baseScore,cve.cvssV2_severity),
cve.get_publish_text,
- vulnerability.name if vulnerability else '',
- investigation.name if investigation else '',
+ vulnerability.name if vulnerability else '<no_vulnerability>',
+ investigation.name if investigation else '<no_investigation>',
+ investigation.product.long_name if investigation and investigation.product else '<no_product>',
investigation.get_priority_text if investigation else '',
investigation.get_status_text if investigation else '',
investigation.get_outcome_text if investigation else '',
- defect.name if defect else '',
+ defect.name if defect else '<no_defect>',
defect.get_priority_text if defect else '',
defect.get_status_text if defect else '',
- defect.get_outcome_text if defect else '',
+ defect.get_resolution_text if defect else '',
])
def exec_report(self, *args, **kwargs):
diff --git a/lib/srtgui/tables.py b/lib/srtgui/tables.py
index 0bfef4e5..44d02a11 100644
--- a/lib/srtgui/tables.py
+++ b/lib/srtgui/tables.py
@@ -1480,7 +1480,7 @@ class InvestigationsTable(ToasterTable):
title="Filter Investigations by 'Product'")
for p in Product.objects.all():
is_product.add_action( TableFilterActionToggle(
- p.pk,
+ p.key,
p.long_name,
Q(product=p)) )
self.add_filter(is_product)