1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

Merge pull request #300 from kyverno/update-search

Update Search Query
This commit is contained in:
Frank Jogeleit 2023-04-15 12:22:35 +02:00 committed by GitHub
commit 7eb9db0750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1446,7 +1446,7 @@ func generateFilterWhere(filter api.Filter, active []string) (string, []interfac
equalIndex,
equalIndex,
))
args = append(args, filter.Search+"%", filter.Search)
args = append(args, "%"+filter.Search+"%", filter.Search)
}
if len(filter.ReportLabel) > 0 {
for key, value := range filter.ReportLabel {