movies_on_date = session.query(movies_showing,
movies,
func.group_concat(movies_showing.movie_showtime)\
.label("showtimes"))\
.filter(movies_showing.date == movie_date,
movies.movie_title == movies_showing.movie_title) \
.group_by(movies_showing.movie_title)\
.all()
how do we do a group concat and order them?
i've tried:
func.group_concat(movies_showing.movie_showtime).asc()
and:
func.group_concat(movies_showing.movie_showtime.asc())
and both doesn't seem to work. how do we achieve that?