|
|
|
@ -7,7 +7,7 @@ import os
|
|
|
|
|
from get_args import args
|
|
|
|
|
from config import base_url
|
|
|
|
|
|
|
|
|
|
socketio = SocketIO(async_mode='threading')
|
|
|
|
|
socketio = SocketIO()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_app():
|
|
|
|
@ -42,7 +42,8 @@ def create_app():
|
|
|
|
|
return redirect(url_for('series'), code=302)
|
|
|
|
|
return render_template('404.html'), 404
|
|
|
|
|
|
|
|
|
|
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*')
|
|
|
|
|
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*', async_mode='threading',
|
|
|
|
|
manage_session=False)
|
|
|
|
|
return app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|