forked from MarseyWorld/MarseyWorld
dont allow "hot" with "all" to prevent query timeout
parent
39098fe323
commit
0f8c75f252
|
@ -39,6 +39,9 @@ def front_all(v, sub=None):
|
|||
sort=request.values.get("sort", defaultsorting)
|
||||
t=request.values.get('t', defaulttime)
|
||||
|
||||
if t == 'all' and sort == 'hot':
|
||||
sort = 'top'
|
||||
|
||||
try: gt=int(request.values.get("after", 0))
|
||||
except: gt=0
|
||||
|
||||
|
|
Loading…
Reference in New Issue