remove now-unneeded function

pull/198/head
Aevann 2023-08-31 16:23:34 +03:00
parent aa1c0903e6
commit f6c7fd87a5
1 changed files with 0 additions and 6 deletions

View File

@ -561,12 +561,6 @@ class User(Base):
def has_blocked(self, target):
return g.db.query(UserBlock).filter_by(user_id=self.id, target_id=target.id).one_or_none()
@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()
@property
@lazy
def all_twoway_blocks(self):