minor fix to g.v

pull/139/head
Aevann 2023-03-11 09:31:02 +02:00
parent 0df1240473
commit d9ecb5b884
2 changed files with 2 additions and 2 deletions

View File

@ -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!")

View File

@ -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