Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #417 from HXSecurity/Bidaya0-patch-ScaArtifactDb-C…
Browse files Browse the repository at this point in the history
…OUNT

Update views.py
  • Loading branch information
Bidaya0 committed Jan 18, 2022
2 parents eacacf4 + b2fa6e7 commit 55dc99a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scaupload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ class SCAStatViewSet(UserEndPoint):
def get(self, request):
sca_count = ScaMavenDb.objects.filter(
import_from=ImportFrom.USER).count()
vuln_count = ScaArtifactDb.objects.filter(
import_from=ImportFrom.USER).count()
vuln_count = ScaArtifactDb.objects.count()
try:
res = get_packge_from_sca_lib(page_size=1)
sca_count = sca_count + res['page']['alltotal']
Expand Down

0 comments on commit 55dc99a

Please sign in to comment.