Skip to content

Commit 8f1750b

Browse files
authored
Merge pull request #1521 from getredash/arikfr-patch-1
[ElasticSearch] Fix: wrong variable name.
2 parents 57e2578 + 3d0b90f commit 8f1750b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redash/query_runner/elasticsearch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def _get_query_mappings(self, url):
123123
if error:
124124
return mappings, error
125125

126-
for index_name in mappings_data:
127-
index_mappings = mappings_data[index_name]
126+
for index_name in mappings:
127+
index_mappings = mappings[index_name]
128128
for m in index_mappings.get("mappings", {}):
129129
for property_name in index_mappings["mappings"][m]["properties"]:
130130
property_data = index_mappings["mappings"][m]["properties"][property_name]

0 commit comments

Comments
 (0)