blegh
This commit is contained in:
parent
ab2f49c2fc
commit
f3b79d99c0
1 changed files with 1 additions and 0 deletions
|
@ -583,6 +583,7 @@ class User(Base):
|
||||||
posts = g.db.query(Subscription.submission_id).filter_by(user_id=self.id).all()
|
posts = g.db.query(Subscription.submission_id).filter_by(user_id=self.id).all()
|
||||||
return [x[0] for x in posts]
|
return [x[0] for x in posts]
|
||||||
|
|
||||||
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def userblocks(self):
|
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()]
|
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()]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue