stop googlebot from running into a 500 error

master
Aevann 2023-08-24 00:58:29 +03:00
parent 8d84748c42
commit b0e6166398
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ def front_all(v, sub=None):
sort = request.values.get("sort", defaultsorting)
t = request.values.get('t', defaulttime)
if SITE == 'rdrama.net' and t == 'all' and sort == 'hot' and page > 6000:
sort = 'top'
try: gt = int(request.values.get("after", 0))
except: gt = 0