Commit be872c7b authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added named argument to query.

parent acfae547
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -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: