Skip to content

Commit

Permalink
[bots/events] fix cgwire#905
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Jan 7, 2025
1 parent c6206b3 commit 9774f77
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions zou/event_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

monkey.patch_all()

from flask import Flask, jsonify
from flask import jsonify
from flask_jwt_extended import (
get_jwt_identity,
jwt_required,
verify_jwt_in_request,
JWTManager,
)
from flask_socketio import SocketIO, disconnect, join_room, emit
from flask_sqlalchemy import SQLAlchemy

from zou.app import config
from zou.app import config, app
from zou.app.stores import auth_tokens_store
from zou.app.utils.monitoring import init_monitoring
from zou.app.utils.flask import ORJSONProvider
from zou.app.services import persons_service

server_stats = {"nb_connections": 0}
Expand Down Expand Up @@ -227,12 +224,6 @@ def create_app():
socketio = SocketIO(
logger=True, cors_allowed_origins=[], cors_credentials=False
)
app = Flask(__name__)
app.json = ORJSONProvider(app)
app.config.from_object(config)
init_monitoring(app)
db = SQLAlchemy(app)
app.extensions["sqlalchemy"].db = db
set_info_routes(socketio, app)
set_application_routes(socketio, app)
set_playlist_room_routes(socketio, app)
Expand Down

0 comments on commit 9774f77

Please sign in to comment.