From 202700b129554938472359099c45230427f2c570 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 15 May 2023 14:28:27 +0200 Subject: [PATCH] fix cqi over socketio corpus.update_db command --- app/corpora/cqi_over_socketio/cqi_corpora_corpus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/corpora/cqi_over_socketio/cqi_corpora_corpus.py b/app/corpora/cqi_over_socketio/cqi_corpora_corpus.py index 5332aade..9a976dd7 100644 --- a/app/corpora/cqi_over_socketio/cqi_corpora_corpus.py +++ b/app/corpora/cqi_over_socketio/cqi_corpora_corpus.py @@ -38,7 +38,7 @@ def cqi_corpora_corpus_query(cqi_client: cqi.CQiClient, corpus_name: str, subcor @cqi_over_socketio def cqi_corpora_corpus_update_db(cqi_client: cqi.CQiClient, corpus_name: str): corpus = Corpus.query.get(session['d']['corpus_id']) - corpus.num_tokens = cqi_client.corpora.get('CORPUS').attrs['size'] + corpus.num_tokens = cqi_client.corpora.get(corpus_name).attrs['size'] db.session.commit()