From 388e7eaa607290f1063e730af4882f9d2364ed46 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 11 Nov 2019 15:57:55 +0100 Subject: [PATCH] Add first implementation of loading modal --- app/corpora/events.py | 1 + app/templates/base.html.j2 | 8 ++++--- app/templates/corpora/corpus_analysis.html.j2 | 22 +++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/app/corpora/events.py b/app/corpora/events.py index 601cd654..3da43763 100644 --- a/app/corpora/events.py +++ b/app/corpora/events.py @@ -55,6 +55,7 @@ def observe_corpus_analysis_connection(app, corpus_id, session_id): username='opaque') analysis_client.connect() analysis_clients[session_id] = analysis_client + socketio.emit('init_corpus_analysis', 'Ready', room=session_id) while session_id in connected_sessions: try: analysis_client.ctrl_ping() diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 2febaeab..1f0e4647 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -158,9 +158,7 @@
- {% block main_block %} - {% endblock %} - + {% block main_block %}{% endblock %}