Skip to content

Commit

Permalink
To Ignore "No Threat" type from statisctics in threat distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
JawedCIA committed Jun 11, 2023
1 parent 6f8508e commit 7d8141f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public async Task<IEnumerable<DistributionCount>> GetThreatDistributionBasedOnUp
FROM FilesRecord a
LEFT JOIN FilesRecord b ON a.ThreatType = b.ThreatType
WHERE a.ThreatType IS NOT NULL AND a.ThreatType <> ''
AND LOWER(a.ThreatType) <> 'no threat'
AND
DATE(a.UploadedDate) between DATE(@FromDate) AND DATE(@ToDate)
GROUP BY a.ThreatType;
Expand Down

0 comments on commit 7d8141f

Please sign in to comment.