I have a method like this:
def build_query(self, ids):
return '''select
d.name as degree,
fs.student_id
from form_status fs
left join form_fills fc
on fs.id = fc.form_fills_id
...
where fs.student_id in (*ids);
'''
and ids is a list that looks like this: [1,2,3,100,10000]
How do I do this properly? I like the triple quoted strings because they allow me to indent the sql string and not look weird. Can I maintain this?