forked from MarseyWorld/MarseyWorld
improve last commit
parent
a9a68ae79d
commit
8139b908f3
|
@ -30,7 +30,6 @@ def cron_fn(every_5m, every_1d):
|
|||
with app.app_context():
|
||||
g.db = db_session()
|
||||
g.v = None
|
||||
g.vid = None
|
||||
|
||||
try:
|
||||
if every_5m:
|
||||
|
|
|
@ -10,7 +10,6 @@ from files.__main__ import app, limiter, get_CF, redis_instance
|
|||
@app.before_request
|
||||
def before_request():
|
||||
g.v = None
|
||||
g.vid = None
|
||||
|
||||
if request.host != SITE:
|
||||
abort(403, "Unauthorized host provided!")
|
||||
|
|
Loading…
Reference in New Issue