Use instead of "'%s'" to avoid problems in the unlikely instance of the strings containing characters that need escaping. Also use a ternary operator instead of indexing a tuple.
Use instead of "'%s'" to avoid problems in the unlikely instance of the strings containing characters that need escaping. Also use a ternary operator instead of indexing a tuple.