diff --git a/files/routes/front.py b/files/routes/front.py index 7bc3a44ee..01d8d8881 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -255,7 +255,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words=' elif sort == "comments": posts = posts.order_by(Submission.comment_count.desc()) - if v: size = int(v.frontsize) + if v: size = v.frontsize or 0 else: size = 25 posts = posts.offset(size * (page - 1)).limit(size+1).all()