From a9fa949df858e51dd999e38220a4e0f0f04f615d Mon Sep 17 00:00:00 2001 From: ashatora Date: Wed, 1 May 2024 13:10:37 +0300 Subject: [PATCH] Fix connections --- examples/query.json | 11 +++++++++++ query_itv/__main__.py | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 examples/query.json diff --git a/examples/query.json b/examples/query.json new file mode 100644 index 0000000..dab7f59 --- /dev/null +++ b/examples/query.json @@ -0,0 +1,11 @@ +{ + "files": [], + "url": "http://10.10.8.79:7000/xmlrpc", + "params": { + "from": "tcp://kptsp_vb", + "query_data": "
{}", + "query_type": 97, + "to": "tcp://bnd127", + "user_id": 0 + } +} \ No newline at end of file diff --git a/query_itv/__main__.py b/query_itv/__main__.py index f49825a..42623cc 100644 --- a/query_itv/__main__.py +++ b/query_itv/__main__.py @@ -172,8 +172,8 @@ def get_data(params, files, url): rxmls.set_result(res, 0, '') request_string = req.find('data').text - OODBWorkspaceFactory.init('config/workspaces.json') - conf = ResponseWorkerConfig('config/response2.json', 'config/workspaces.json') + OODBWorkspaceFactory.init('/app/query_itv/config/workspaces.json') + conf = ResponseWorkerConfig('/app/query_itv/config/response2.json', '/app/query_itv/config/workspaces.json') worker = ResponseWorker(conf) fn = uuid4().hex dir = os.path.join(os.getcwd(), 'tmp', fn)