From 987ba6ed3c042c2101ab85e0b3c62e3c82c80432 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 4 Oct 2022 21:47:37 +0100 Subject: [PATCH] Change druid URL --- core/db/druid.py | 2 +- core/static/js/column-shifter.js | 9 +++++---- core/views/ui/tables.py | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/db/druid.py b/core/db/druid.py index 38116a3..d35305a 100644 --- a/core/db/druid.py +++ b/core/db/druid.py @@ -114,7 +114,7 @@ class DruidBackend(StorageBackend): ss = orjson.dumps(search_query, option=orjson.OPT_INDENT_2) ss = ss.decode() print(ss) - response = requests.post("http://broker:8082/druid/v2", json=search_query) + response = requests.post("http://druid:8082/druid/v2", json=search_query) response = orjson.loads(response.text) print("RESPONSE LEN", len(response)) # ss = orjson.dumps(response, option=orjson.OPT_INDENT_2) diff --git a/core/static/js/column-shifter.js b/core/static/js/column-shifter.js index f0c7a6b..327ceb3 100644 --- a/core/static/js/column-shifter.js +++ b/core/static/js/column-shifter.js @@ -65,11 +65,12 @@ $(document).ready(function(){ "file_ext": "off", "file_size": "off", "lang_code": "off", + "tokens": "off", //"lang_name": "off", - "words_noun": "off", - "words_adj": "off", - "words_verb": "off", - "words_adv": "off" + // "words_noun": "off", + // "words_adj": "off", + // "words_verb": "off", + // "words_adv": "off" }, }; } else { diff --git a/core/views/ui/tables.py b/core/views/ui/tables.py index ebc6eae..3e55a03 100644 --- a/core/views/ui/tables.py +++ b/core/views/ui/tables.py @@ -65,13 +65,13 @@ class DrilldownTable(Table): realname = Column() server = Column() mtype = Column() - # tokens = Column() + tokens = Column() lang_code = Column() lang_name = Column() - words_noun = Column() - words_adj = Column() - words_verb = Column() - words_adv = Column() + # words_noun = Column() + # words_adj = Column() + # words_verb = Column() + # words_adv = Column() hidden = Column() filename = Column() file_md5 = Column()