fdsfds
This commit is contained in:
parent
e31a9c91bc
commit
88279c5877
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ class User(Base):
|
|||
def saved_comment_idlist(self):
|
||||
|
||||
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
|
||||
except: return []
|
||||
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