mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
fix cache loading string instead of parsing json
This commit is contained in:
parent
71013f1dc5
commit
1e33366820
@ -54,7 +54,7 @@ def cqi_corpora_corpus_get_visualization_data(cqi_client: cqi.CQiClient, corpus_
|
|||||||
visualization_data_file_path = os.path.join(corpus.path, 'cwb', 'visualization_data.json')
|
visualization_data_file_path = os.path.join(corpus.path, 'cwb', 'visualization_data.json')
|
||||||
if os.path.exists(visualization_data_file_path):
|
if os.path.exists(visualization_data_file_path):
|
||||||
with open(visualization_data_file_path, 'r') as f:
|
with open(visualization_data_file_path, 'r') as f:
|
||||||
payload = f.read()
|
payload = json.load(f)
|
||||||
return {'code': 200, 'msg': 'OK', 'payload': payload}
|
return {'code': 200, 'msg': 'OK', 'payload': payload}
|
||||||
cqi_corpus = cqi_client.corpora.get(corpus_name)
|
cqi_corpus = cqi_client.corpora.get(corpus_name)
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user