remotes/1693045480750635534/spooky-22
Aevann1 2021-10-10 06:15:20 +02:00
parent 80484359bd
commit 69a63c6e3f
1 changed files with 5 additions and 2 deletions

View File

@ -535,7 +535,6 @@ class User(Base):
return [x[0] for x in posts.offset(25 * (page - 1)).limit(26).all()]
@lazy
def saved_comment_idlist(self, page=1):
comments = g.db.query(Comment.id).options(lazyload('*')).filter_by(is_banned=False, deleted_utc=0)
@ -558,7 +557,11 @@ class User(Base):
comments = comments.order_by(Comment.created_utc.desc())
return [x[0] for x in comments.offset(25 * (page - 1)).limit(26).all()]
ids = [x[0] for x in comments.offset(25 * (page - 1)).limit(26).all()]
print(ids)
return ids
@property
@lazy