Replies: 1 comment
-
|
you can use the join method to concatenate the list of strings into a single string, and then pass that string as the params argument. For e.g:-params=','.join(['a', 'b', 'c']) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run this following query, I get the error
TypeError('not all arguments converted during string formatting').However, if I insert the list with python's string formatter and
{..}placeholder, it works. But that is unsafe.I am not very familiar with psycopg2, but it looks like a missing feature in the age's python driver that didn't map to psycopg2 correctly. Can anyone confirm?
Beta Was this translation helpful? Give feedback.
All reactions