fdsfds
parent
dd82a2a864
commit
48d5e9bc65
|
@ -255,8 +255,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
elif sort == "comments":
|
elif sort == "comments":
|
||||||
posts = posts.order_by(Submission.comment_count.desc())
|
posts = posts.order_by(Submission.comment_count.desc())
|
||||||
|
|
||||||
if v:
|
if v: size = int(v.frontsize)
|
||||||
size = v.frontsize
|
|
||||||
else: size = 25
|
else: size = 25
|
||||||
|
|
||||||
posts = posts.offset(size * (page - 1)).limit(size+1).all()
|
posts = posts.offset(size * (page - 1)).limit(size+1).all()
|
||||||
|
|
Loading…
Reference in New Issue