Postgres model:
class Song(db.Model):
id3_parsed = db.Column(db.Boolean, server_default=u'false')
Running the following query gives the correct count:
select count(*) from song where id3_parsed is false;
But how do I do it with flask-sqlalchemy? This doesn't work:
songs = Song.query.filter(Song.id3_parsed == False).all()
songs = Song.query.filter(Song.id3_parsed.is_(False)).all()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With