forked from rDrama/rDrama
dont allow posts from /h/pets to appear in the first page of the frontpage
parent
c8181148ac
commit
d2b8379ecc
|
@ -147,6 +147,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
posts = posts.options(load_only(Post.id)).offset(size * (page - 1))
|
posts = posts.options(load_only(Post.id)).offset(size * (page - 1))
|
||||||
|
|
||||||
if SITE_NAME == 'WPD' and sort == "hot" and hole == None:
|
if SITE_NAME == 'WPD' and sort == "hot" and hole == None:
|
||||||
|
if page == 1:
|
||||||
|
posts = posts.filter(Post.hole != 'pets')
|
||||||
|
|
||||||
posts = posts.limit(200).all()
|
posts = posts.limit(200).all()
|
||||||
posts_in_limited_holes = [x for x in posts if x.hole in LIMITED_WPD_HOLES]
|
posts_in_limited_holes = [x for x in posts if x.hole in LIMITED_WPD_HOLES]
|
||||||
captured_holes = set()
|
captured_holes = set()
|
||||||
|
|
Loading…
Reference in New Issue