aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/elasticsearch_tools.py
diff options
context:
space:
mode:
authorzsloan2018-07-02 16:09:41 +0000
committerzsloan2018-07-02 16:09:41 +0000
commit6f7732f06ab01bbb67443cc6270671fc1cd76860 (patch)
tree19a33b60ef62285160946db01b6e684f03f00ad5 /wqflask/utility/elasticsearch_tools.py
parenta057a6549500eec595c068e9b7da1d4cbfcd50cf (diff)
downloadgenenetwork2-6f7732f06ab01bbb67443cc6270671fc1cd76860.tar.gz
Added option to transform/normalize trait sample values (log2 and qnorm) on trait page
Got figures mostly working with transformed values, except for changing the y-axis range of one Fixed issue with the home page "Make Default" button position (as well as the drop-downs in general) Added timeout to Elasticsearch connection to fix related error
Diffstat (limited to 'wqflask/utility/elasticsearch_tools.py')
-rw-r--r--wqflask/utility/elasticsearch_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/elasticsearch_tools.py b/wqflask/utility/elasticsearch_tools.py
index 293a9ae6..15cdd0bc 100644
--- a/wqflask/utility/elasticsearch_tools.py
+++ b/wqflask/utility/elasticsearch_tools.py
@@ -63,7 +63,7 @@ def get_elasticsearch_connection(for_user=True):
es = Elasticsearch([{
"host": ELASTICSEARCH_HOST, "port": ELASTICSEARCH_PORT
- }]) if (ELASTICSEARCH_HOST and ELASTICSEARCH_PORT) else None
+ }], timeout=30, retry_on_timeout=True) if (ELASTICSEARCH_HOST and ELASTICSEARCH_PORT) else None
if for_user:
setup_users_index(es)