forked from rDrama/rDrama
remove unnecessary lines
parent
3964a27281
commit
52959cec63
|
@ -52,10 +52,6 @@ app.config["CACHE_TYPE"] = "RedisCache"
|
||||||
app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL").strip()
|
app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL").strip()
|
||||||
app.config["CACHE_DEFAULT_TIMEOUT"] = 86400
|
app.config["CACHE_DEFAULT_TIMEOUT"] = 86400
|
||||||
|
|
||||||
app.config['SERVICE'] = Service.RDRAMA
|
|
||||||
if "load_chat" in argv:
|
|
||||||
app.config['SERVICE'] = Service.CHAT
|
|
||||||
|
|
||||||
def get_CF():
|
def get_CF():
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
x = request.headers.get('CF-Connecting-IP')
|
x = request.headers.get('CF-Connecting-IP')
|
||||||
|
@ -83,10 +79,9 @@ redis_instance = redis.Redis.from_url(app.config["CACHE_REDIS_URL"])
|
||||||
|
|
||||||
from files.routes.allroutes import *
|
from files.routes.allroutes import *
|
||||||
|
|
||||||
if app.config['SERVICE'] == Service.RDRAMA:
|
if "load_chat" in argv:
|
||||||
|
from files.routes.chat import *
|
||||||
|
else:
|
||||||
from files.routes import *
|
from files.routes import *
|
||||||
|
|
||||||
elif app.config['SERVICE'] == Service.CHAT:
|
|
||||||
from files.routes.chat import *
|
|
||||||
|
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
|
Loading…
Reference in New Issue