fdssdf
This commit is contained in:
parent
cdff78fe89
commit
f30c9c3ce5
1 changed files with 19 additions and 21 deletions
|
@ -169,9 +169,6 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "bottom":
|
||||
comments = comments.order_by(Comment.upvotes - Comment.downvotes)
|
||||
|
||||
offset = int(request.values.get("offset", 0))
|
||||
if offset: comments = comments.offset(offset)
|
||||
|
||||
comments = [c[0] for c in comments.all()]
|
||||
else:
|
||||
pinned = g.db.query(Comment).filter(Comment.parent_submission == post.id, Comment.is_pinned != None).all()
|
||||
|
@ -189,10 +186,11 @@ def post_id(pid, anything=None, v=None):
|
|||
elif sort == "bottom":
|
||||
comments = comments.order_by(Comment.upvotes - Comment.downvotes)
|
||||
|
||||
offset = 0
|
||||
|
||||
comments = comments.all()
|
||||
|
||||
offset = 0
|
||||
|
||||
if post.comment_count > 60:
|
||||
comments2 = []
|
||||
count = 0
|
||||
if post.created_utc > 1638672040:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue