How do you get values from a Flask Query?
Here's what I'm trying:
batch_num_options = Ticket.query.values('batch_num').all()
and this produces the error:
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) column "batch_num" does not exist LINE 1: SELECT batch_num
But if I psql
into my Ticket
table I can clearly see that batch_num
is a column.