Skip to content

Commit

Permalink
core | wildcards update
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorchug committed Aug 19, 2024
1 parent 29c2459 commit 24b8066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/libs/sqlcustom.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def preprocess_wild_card_string(strToProcess, fieldToLookAt, **kwargs):
parameter = parameter.replace('_', '!_')
isEscape = True

extraQueryString += f"({fieldToLookAt}"
extraQueryString += f"({fieldToLookAt} "
if isNot:
extraQueryString += "NOT "
extraQueryString += " NOT "
if leadStar and trailStar:
extraQueryString += f" LIKE {prefix}'%%{parameter}%%'{postfix}"
elif not leadStar and not trailStar:
Expand Down

0 comments on commit 24b8066

Please sign in to comment.