Rename cqi extensions file

This commit is contained in:
Patrick Jentsch 2024-11-07 10:44:27 +01:00
parent b4faa1c695
commit 63690222ed
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from threading import Lock
from app import db, docker_client, hashids, socketio from app import db, docker_client, hashids, socketio
from app.decorators import socketio_login_required from app.decorators import socketio_login_required
from app.models import Corpus, CorpusStatus from app.models import Corpus, CorpusStatus
from . import extensions from . import cqi_extensions
from .utils import CQiOverSocketIOSessionManager from .utils import CQiOverSocketIOSessionManager
@ -152,8 +152,8 @@ class CQiOverSocketIONamespace(Namespace):
if fn_name in CQI_API_FUNCTION_NAMES: if fn_name in CQI_API_FUNCTION_NAMES:
fn = getattr(cqi_client.api, fn_name) fn = getattr(cqi_client.api, fn_name)
elif fn_name in extensions.CQI_EXTENSION_FUNCTION_NAMES: elif fn_name in cqi_extensions.CQI_EXTENSION_FUNCTION_NAMES:
fn = getattr(extensions, fn_name) fn = getattr(cqi_extensions, fn_name)
else: else:
return {'code': 400, 'msg': 'Bad Request'} return {'code': 400, 'msg': 'Bad Request'}