From 166f6fb4ee02803ed9260dda2a28380034f25ff9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 11 Aug 2023 16:31:09 +0300 Subject: [PATCH] fix 500 error caused by 3ec2038caf16d17dd35f3fcbd3b089bb765e8aab --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index e00680caf..7c1df12cd 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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):