fix: Convert list to tuple
This commit is contained in:
parent
3b61a6cb28
commit
10701738d8
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ def search(text, start=0, limit=20, doctype=""):
|
|||
values['doctype'] = doctype
|
||||
elif allowed_doctypes:
|
||||
conditions = '`doctype` IN %(allowed_doctypes)s'
|
||||
values['allowed_doctypes'] = allowed_doctypes
|
||||
values['allowed_doctypes'] = tuple(allowed_doctypes)
|
||||
|
||||
if int(start) > 0:
|
||||
offset = 'OFFSET {}'.format(start)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue