Skip to content

Commit 8c69a5c

Browse files
committed
fixes after main merge
1 parent 6029de6 commit 8c69a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cycode/cli/printers/utils/detection_ordering/common_ordering.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _sort_detections_by_file_path(
3636
def sort_and_group_detections(
3737
detections_with_documents: List[Tuple['Detection', 'Document']],
3838
) -> GroupedDetections:
39-
"""Sort detections by severity. We do not have groping here (don't find the best one yet)."""
39+
"""Sort detections by severity. We do not have grouping here (don't find the best one yet)."""
4040
group_separator_indexes = set()
4141

4242
# we sort detections by file path to make persist output order

cycode/cli/printers/utils/detection_ordering/sca_ordering.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __group_by(detections: List['Detection'], details_field_name: str) -> Dict[s
1515

1616

1717
def __severity_sort_key(detection: 'Detection') -> int:
18-
severity = detection.detection_details.get('advisory_severity', 'unknown')
18+
severity = detection.severity if detection.severity else 'unknown'
1919
return SeverityOption.get_member_weight(severity)
2020

2121

0 commit comments

Comments
 (0)