Skip to content

Commit

Permalink
Merge pull request #1521 from getredash/arikfr-patch-1
Browse files Browse the repository at this point in the history
[ElasticSearch] Fix: wrong variable name.
  • Loading branch information
arikfr authored Jan 13, 2017
2 parents 57e2578 + 3d0b90f commit 8f1750b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash/query_runner/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def _get_query_mappings(self, url):
if error:
return mappings, error

for index_name in mappings_data:
index_mappings = mappings_data[index_name]
for index_name in mappings:
index_mappings = mappings[index_name]
for m in index_mappings.get("mappings", {}):
for property_name in index_mappings["mappings"][m]["properties"]:
property_data = index_mappings["mappings"][m]["properties"][property_name]
Expand Down

0 comments on commit 8f1750b

Please sign in to comment.