Reformat and set the net and channel for 4chan
This commit is contained in:
8
db.py
8
db.py
@@ -41,8 +41,8 @@ def store_message(msg):
|
||||
# print(body_post)
|
||||
try:
|
||||
# Bulk index operations
|
||||
api_instance.bulk(body_post, async_req=True)
|
||||
# print(api_response)
|
||||
api_response = api_instance.bulk(body_post) # , async_req=True
|
||||
print(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling IndexApi->bulk: %s\n" % e)
|
||||
|
||||
@@ -82,8 +82,8 @@ def store_message_bulk(data):
|
||||
# print(body_post)
|
||||
try:
|
||||
# Bulk index operations
|
||||
api_instance.bulk(body_post, async_req=True)
|
||||
# print(api_response)
|
||||
api_response = api_instance.bulk(body_post) # , async_req=True
|
||||
print(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling IndexApi->bulk: %s\n" % e)
|
||||
print("FINISHED PROCESSING SPLIT")
|
||||
|
||||
Reference in New Issue
Block a user