mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Rename cqi extensions file
This commit is contained in:
parent
b4faa1c695
commit
63690222ed
@ -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'}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user