SQLAlchemy – filtering rows before today with autoloaded DATETIME column?

Using filter rather than filter_by works, i.e. changing the query to:

eps = self.query.filter(FutureEpisode.IN_LIST==1, FutureEpisode.EP_ENDTIME < todays_datetime).all()

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top