Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update Vulnerability Queries #1227

Merged
merged 3 commits into from
Feb 7, 2023
Merged

feat: Update Vulnerability Queries #1227

merged 3 commits into from
Feb 7, 2023

Conversation

tscuite
Copy link
Member

@tscuite tscuite commented Feb 7, 2023

No description provided.

@@ -436,12 +435,13 @@ def get_graph_and_headers(self, data):
}]
return res

def get(self, request, id):
def get(self, request, id, departments=None):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, departments=None

# queryset = IastVulnerabilityModel.objects.filter(
# is_del=0, agent__user_id=user_id)
queryset = IastVulnerabilityModel.objects.filter(
is_del=0, project__department_id__in=department)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

project__department__in=department

@tscuite tscuite merged commit 65f52ba into HXSecurity:main Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants