Yes, you just need to unpack the list:
db(query).select(*fields)

On Jul 22, 5:44 pm, weheh <richard_gor...@verizon.net> wrote:
> Is there a way to make a list of db fields:
>
> fields=[db.table1.id, db.table2.name, etc.]
>
> and then use that list in a query, e.g.
>
> db(query).select(fields)
>
> ?
>
> I've tried various things but they don't work. I suppose I'd have to
> inspect the code to figure it out.

Reply via email to