Skip to content

Commit 0a539e7

Browse files
committed
Fix comparison with True in SQLAlchemy query
1 parent 8110916 commit 0a539e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxcontrib/websupport/storage/sqlalchemy_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def nested_comments(self, username, moderator):
5151

5252
# Filter out all comments that are not moderated yet.
5353
if not moderator:
54-
q = q.filter(Comment.displayed is True)
54+
q = q.filter(Comment.displayed == True) # noqa: E712
5555

5656
# Retrieve all results. Results must be ordered by Comment.path
5757
# so that we can easily transform them from a flat list to a tree.

0 commit comments

Comments
 (0)