aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/elasticsearch_tools.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-04-30 13:15:10 +0300
committerBonfaceKilz2021-04-30 13:45:15 +0300
commit99f8bdbb70e4e00df6671c3f20db4857ffa96d6f (patch)
treeb2e672d66ff5e43e1a2162b62493ceed7a158818 /wqflask/utility/elasticsearch_tools.py
parent4e65b73a0f903834f8dbd02d11c49b75d7c935c7 (diff)
downloadgenenetwork2-99f8bdbb70e4e00df6671c3f20db4857ffa96d6f.tar.gz
autopep8: Run autopep8 100 times with target rules
Rules used are: E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,E242, E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306, E401,E501,E70,E701,W291,W292,W293,W391,W504,E101,E11,E121, E122,E123,E124,E125,E126,E127,E128,E129,E131,E133
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 e56c22eb..eae3ba03 100644
--- a/wqflask/utility/elasticsearch_tools.py
+++ b/wqflask/utility/elasticsearch_tools.py
@@ -105,7 +105,7 @@ def get_item_by_unique_column(es, column_name, column_value, index, doc_type):
item_details = None
try:
response = es.search(
- index=index, doc_type=doc_type, body = {
+ index=index, doc_type=doc_type, body={
"query": {"match": {column_name: column_value}}
})
if len(response["hits"]["hits"]) > 0: