leftover square brackets

This commit is contained in:
Honza Král
2019-08-21 17:47:23 +02:00
parent d936ba3eb4
commit 5c0cbc76b1
+1 -1
View File
@@ -1313,7 +1313,7 @@ class Elasticsearch(object):
if scroll_id in SKIP_IN_PATH and body in SKIP_IN_PATH: if scroll_id in SKIP_IN_PATH and body in SKIP_IN_PATH:
raise ValueError("You need to supply scroll_id or body.") raise ValueError("You need to supply scroll_id or body.")
elif scroll_id and not body: elif scroll_id and not body:
body = {"scroll_id": [scroll_id]} body = {"scroll_id": scroll_id}
elif scroll_id: elif scroll_id:
params["scroll_id"] = scroll_id params["scroll_id"] = scroll_id