hot: New version of SQLAlchemy makes boolean comparison fail. ...

Solution is just to add the second filter as another parameter instead
of doing an in-Python boolean comparison.

See
http://docs.sqlalchemy.org/en/latest/changelog/migration_06.html#an-important-expression-language-gotcha
for further information.