forked from rDrama/rDrama
1
0
Fork 0

no step on jc

master
justcool393 2022-11-13 01:02:25 -06:00
parent aa272729f1
commit 775f0d0717
1 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,13 @@ def teardown_request(error):
del g.db
stdout.flush()
@limiter.request_filter
def no_step_on_jc():
if request:
key = environ.get("NO_STEP_ON_JC", "")
if key and key == request.headers.get("X-No-Step", ""): return True
return False
if "load_chat" in argv:
from files.routes.chat import *
else: