appender events and applications are updated
This commit is contained in:
@@ -5,8 +5,10 @@ from fastapi.responses import RedirectResponse
|
||||
|
||||
cluster_is_set = False
|
||||
|
||||
|
||||
def create_events_if_any_cluster_set():
|
||||
import Events
|
||||
|
||||
global cluster_is_set
|
||||
if not Events.__all__ or cluster_is_set:
|
||||
return
|
||||
@@ -60,7 +62,7 @@ def create_app():
|
||||
|
||||
route_register = RouteRegisterController(app=application, router_list=get_routes())
|
||||
application = route_register.register_routes()
|
||||
|
||||
|
||||
create_events_if_any_cluster_set()
|
||||
application.openapi = lambda _=application: create_openapi_schema(_)
|
||||
return application
|
||||
|
||||
Reference in New Issue
Block a user