First of all thank you for your help.
My problem is that I have to query the server with a lot of inputs. I am updating a web page that on the past only accept one input but now, i created a checkbox so the user can have more flexibility on the query:
query = session.query(table_name).filter(and_(*conditions) , or_(*multiple_choice_filter))
Where multiple choice is a list with letters like ["A", "B"] And conditions are a list of conditions:
table_name.c.column_1.op('~*')(filter_1))
Where on the past, there weren't anything else apart from the initial conditions but now I want to add the checkbox.
Somebody now how to combine in the query the conditions from the past with the multiple_choice_filter?
Thank you!