aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/db/post.py
diff options
context:
space:
mode:
authorrr-2017-02-03 21:42:15 +0100
committerrr-2017-02-03 22:42:14 +0100
commitabf1fc2b2d135299fe7e8a700d4e7a18966d7bfe (patch)
treecde2ca37ecb35cbcebb405d09f897915cdb394ab /server/szurubooru/db/post.py
parentfd30675124e2ba0fb07fa15af1bec7432cb9f485 (diff)
server: make linters happier
Diffstat (limited to 'server/szurubooru/db/post.py')
-rw-r--r--server/szurubooru/db/post.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/szurubooru/db/post.py b/server/szurubooru/db/post.py
index 8be7e8b..f0c9f91 100644
--- a/server/szurubooru/db/post.py
+++ b/server/szurubooru/db/post.py
@@ -252,8 +252,8 @@ class Post(Base):
relation_count = column_property(
select([func.count(PostRelation.child_id)])
.where(
- (PostRelation.parent_id == post_id)
- | (PostRelation.child_id == post_id))
+ (PostRelation.parent_id == post_id) |
+ (PostRelation.child_id == post_id))
.correlate_except(PostRelation))
__mapper_args__ = {

© 2015 - 2026 Jakob L. Kreuze