fdsfds
This commit is contained in:
parent
c16bf4edc5
commit
e31a9c91bc
1 changed files with 2 additions and 1 deletions
|
@ -538,7 +538,8 @@ class User(Base):
|
|||
@lazy
|
||||
def saved_comment_idlist(self):
|
||||
|
||||
saved = [x[0] for x in g.db.query(SaveRelationship.comment_id).options(lazyload('*')).filter(SaveRelationship.user_id == self.id).all()]
|
||||
try: saved = [x[0] for x in g.db.query(SaveRelationship.comment_id).options(lazyload('*')).filter(SaveRelationship.user_id == self.id).all()]
|
||||
except: return None
|
||||
comments = g.db.query(Comment.id).options(lazyload('*')).filter(Comment.id.in_(saved))
|
||||
|
||||
if self.admin_level == 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue