From 87b7f07d2647392c965d2519cbe0d2d55aec3db4 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 11 Nov 2019 09:41:34 +0100
Subject: [PATCH] Fix event loop
---
app/corpora/events.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/corpora/events.py b/app/corpora/events.py
index 947f1ace..57aa0a57 100644
--- a/app/corpora/events.py
+++ b/app/corpora/events.py
@@ -38,7 +38,6 @@ def observe_corpus_analysis_connection(app, corpus_id, session_id):
host='{}_analysis_container{}'.format(corpus.creator.username, corpus.id), port=4877)
analysis_clients[session_id] = analysis_client
analysis_client.connect()
- logger.warning(analysis_client.corpus_list_corpora())
corpus_name = 'CORPUS'
result_subcorpus_name = 'Query-results' # should be set by the user somehow
query = '"and";'
@@ -46,6 +45,7 @@ def observe_corpus_analysis_connection(app, corpus_id, session_id):
logger.warning('Log after create_attribute_strings.')
analysis_client.query_subcorpus(corpus_name, result_subcorpus_name, query)
logger.warning('Log after query_subcorpus.')
+ analysis_client.show_results(corpus_name)
while session_id in connected_sessions:
logger.warning(analysis_client.ctrl_ping())
socketio.sleep(3)