Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f371c4

Browse files
committed
Commit related to the last one
1 parent 096ce78 commit 7f371c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
201201
else:
202202
query = kb.injection.prefix or prefix or ""
203203

204-
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')):
204+
if not (expression and expression[0] == ';') and not (query and query[-1] in ('(', ')') and expression and expression[0] in ('(', ')')) and not (query and query[-1] == '('):
205205
query += " "
206206

207207
query = "%s%s" % (query, expression)

0 commit comments

Comments
 (0)