small fix to /h/social and /h/music logic

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-07 01:43:50 +02:00
parent 7b964a5f8e
commit 0aa27a926b
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false"
else: size = PAGE_SIZE
if SITE_NAME == 'WPD' and sort == "hot" and sub == None:
posts = posts.offset(size * (page - 1)).limit(101).all()
posts = posts.offset(size * (page - 1)).limit(201).all()
to_remove = [x.id for x in posts if x.sub == 'social'][1:] + [x.id for x in posts if x.sub == 'music'][1:]
posts = [x for x in posts if x.id not in to_remove]
else: