From 6b8de017abfca2cb517baa60417ace2cf785fa41 Mon Sep 17 00:00:00 2001 From: Jonathan Rehm Date: Mon, 28 Aug 2017 09:28:48 -0700 Subject: [PATCH] Use SQLAlchemy boolean Seems to make a difference sometimes. Ref #300 --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index f5cac135..fb52876c 100755 --- a/cps/web.py +++ b/cps/web.py @@ -511,7 +511,7 @@ def common_filters(): if current_user.filter_language() != "all": lang_filter = db.Books.languages.any(db.Languages.lang_code == current_user.filter_language()) else: - lang_filter = True + lang_filter = true() content_rating_filter = false() if current_user.mature_content else \ db.Books.tags.any(db.Tags.name.in_(config.mature_content_tags())) return and_(lang_filter, ~content_rating_filter)