diff --git a/files/classes/user.py b/files/classes/user.py index f0fbcbd94..258ec6540 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -473,7 +473,6 @@ class User(Base): @lazy def any_block_exists(self, other): - return g.db.query(UserBlock).filter( or_(and_(UserBlock.user_id == self.id, UserBlock.target_id == other.id), and_( UserBlock.user_id == other.id, UserBlock.target_id == self.id))).first()