Skip to content
Snippets Groups Projects
Commit be872c7b authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added named argument to query.

parent acfae547
Branches
Tags
No related merge requests found
......@@ -530,16 +530,13 @@ class DbConnector(object):
'vos_data',
'vos_group',
'vos_import')
AND (job_id ~ %s
OR job_type ~ %s
OR owner_id ~ %s
OR user_name ~ %s)
AND (job_id ~ %(str)s
OR job_type ~ %(str)s
OR owner_id ~ %(str)s
OR user_name ~ %(str)s)
ORDER BY creation_time DESC;
""",
(searchStr,
searchStr,
searchStr,
searchStr,))
{ 'str': searchStr })
result = cursor.fetchall()
cursor.close()
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment