We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773ac12 commit 2958a6bCopy full SHA for 2958a6b
src/index_emails.py
@@ -63,7 +63,7 @@ def create_index():
63
def upload_batch(upload_data):
64
upload_data_txt = ""
65
for item in upload_data:
66
- cmd = {'index': {'_index': 'gmail', '_type': 'email', '_id': item['message-id']}}
+ cmd = {'index': {'_index': tornado.options.options.index_name, '_type': 'email', '_id': item['message-id']}}
67
upload_data_txt += json.dumps(cmd) + "\n"
68
upload_data_txt += json.dumps(item) + "\n"
69
0 commit comments