From 8182cccecdf4b2921ad84a28f13e48df6396d9f8 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 14 Jul 2023 12:59:27 +0200
Subject: [PATCH] Update cqi to v0.1.4
---
app/corpora/cqi_over_sio/__init__.py | 3 +--
requirements.txt | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/app/corpora/cqi_over_sio/__init__.py b/app/corpora/cqi_over_sio/__init__.py
index 57114faa..b2cf02dc 100644
--- a/app/corpora/cqi_over_sio/__init__.py
+++ b/app/corpora/cqi_over_sio/__init__.py
@@ -7,7 +7,6 @@ from flask_socketio import Namespace
from inspect import signature
from threading import Lock
from typing import Callable, Dict, List
-import math
from app import db, hashids, socketio
from app.decorators import socketio_login_required
from app.models import Corpus, CorpusStatus
@@ -122,7 +121,7 @@ class CQiNamespace(Namespace):
socketio.sleep(3)
retry_counter -= 1
db.session.refresh(db_corpus)
- cqi_client = CQiClient(f'cqpserver_{db_corpus_id}', timeout=math.inf)
+ cqi_client = CQiClient(f'cqpserver_{db_corpus_id}', timeout=None)
session['cqi_over_sio'] = {}
session['cqi_over_sio']['cqi_client'] = cqi_client
session['cqi_over_sio']['cqi_client_lock'] = Lock()
diff --git a/requirements.txt b/requirements.txt
index 18593b1c..3ab13960 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
apifairy
-cqi
+cqi>=0.1.4
dnspython==2.2.1
docker
eventlet