I am trying to use a default query and then append some conditions. I would like to know how can i concatenate a string while unpacking args.
filters = []
if industry:
filters.append('industry_id')
filters.append('role_id')
...
As far as I can see this doesn't work (invalid syntax).
print "SELECT city, " + *filters + " FROM histogram"