Skip to content

Commit 76f61c5

Browse files
fix/correct isMonitored project attribute (#183)
* changed isMonitored project attribute to check status of project * fix: fix formatting --------- Co-authored-by: Nathan Roys <[email protected]>
1 parent c0a783e commit 76f61c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

snyk/managers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def _rest_to_v1_response_format(self, project):
152152
"type": attributes.get("type"),
153153
"readOnly": attributes.get("read_only"),
154154
"testFrequency": recurring_tests.get("frequency"),
155-
"isMonitored": True
156-
if project.get("meta", {}).get("cli_monitored_at")
157-
else False,
155+
"isMonitored": True if attributes.get("status") == "active" else False,
158156
"issueCountsBySeverity": {
159157
"low": issue_counts.get("low"),
160158
"medium": issue_counts.get("medium"),

0 commit comments

Comments
 (0)