Skip to content

Commit c13360a

Browse files
committed
fix: display the repository URL status of dependencies in html report instead of the analysis status
1 parent 5847c58 commit c13360a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macaron/output_reporter/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ def get_summary(self) -> dict:
9999
Examples
100100
--------
101101
>>> record.get_summary()
102-
{'id': 'apache/maven', 'description': 'Analysis completed', 'report': 'apache.html', 'status': 'AVAILABLE'}
102+
{'id': 'apache/maven', 'description': 'Analysis completed', 'report': 'apache.html', 'status': SCMStatus.AVAILABLE}
103103
"""
104104
return {
105105
"id": self.record_id,
106106
"description": self.description,
107107
"report": f"{self.context.component.report_file_name}.html" if self.context else "",
108-
"status": self.status,
108+
"status": self.pre_config.get_value("available") or SCMStatus.MISSING_SCM,
109109
}
110110

111111
def get_dict(self) -> dict:

0 commit comments

Comments
 (0)