diff --git a/transfer_service/db_connector.py b/transfer_service/db_connector.py index b63e7e1b353d3463b7666343016f1661e8f77a77..52ce7c109a120376ab95310b96c61b1760bdc988 100644 --- a/transfer_service/db_connector.py +++ b/transfer_service/db_connector.py @@ -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: