fix 500 error caused by 3ec2038caf

pull/189/head
Aevann 2023-08-11 16:31:09 +03:00
parent 92fa475acd
commit 166f6fb4ee
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ class User(Base):
@lazy
def all_twoway_blocks(self):
return set([x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=self.id).all() + \
g.db.query(UserBlock.user_id).filter_by(target_id=self.id)])
g.db.query(UserBlock.user_id).filter_by(target_id=self.id).all()])
def validate_2fa(self, token):