more effortposts shit

pull/222/head
Aevann 2024-02-07 01:07:20 +02:00
parent 0c2ac46e2b
commit f64f0d71e3
1 changed files with 4 additions and 2 deletions

View File

@ -55,10 +55,12 @@ def front_all(v, hole=None):
if sort == 'hot': default = True
else: default = False
pins = session.get(f'{hole}_{sort}', default)
if effortposts_only:
sort = 'new'
t = 'all'
pins = False
else:
pins = session.get(f'{hole}_{sort}', default)
if not v:
result = cache.get(f'frontpage_{sort}_{t}_{page}_{hole}_{pins}_{effortposts_only}')