minor fix to g.v
parent
0df1240473
commit
d9ecb5b884
|
@ -9,6 +9,8 @@ from files.__main__ import app, limiter, get_CF
|
|||
|
||||
@app.before_request
|
||||
def before_request():
|
||||
g.v = None
|
||||
|
||||
if request.host != SITE:
|
||||
abort(403, "Unauthorized host provided!")
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@ from files.__main__ import app
|
|||
@app.get('/rss/<sort>/<t>')
|
||||
@limiter.limit(DEFAULT_RATELIMIT)
|
||||
def feeds_user(sort='hot', t='all'):
|
||||
g.v = None
|
||||
|
||||
try: page = max(int(request.values.get("page", 1)), 1)
|
||||
except: page = 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue