From ddc7f2d52d266d38248693415febd1375c34c5f5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 5 Mar 2022 23:00:01 +0200 Subject: [PATCH] blegh --- files/classes/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/classes/user.py b/files/classes/user.py index 2a9a07f1b..a7c08b821 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -583,6 +583,7 @@ class User(Base): posts = g.db.query(Subscription.submission_id).filter_by(user_id=self.id).all() return [x[0] for x in posts] + @property @lazy def userblocks(self): return [x[0] for x in g.db.query(UserBlock.target_id).filter_by(user_id=v.id).all()] + [x[0] for x in g.db.query(UserBlock.user_id).filter_by(target_id=v.id).all()]