## ## one_column - return the first column of all results from an SQL query as an array # def one_column(curs, query): curs.execute(query) return [row[0] for row in curs.fetchall()]