Commit f2db1af8 authored by 赵威's avatar 赵威

write data

parent 537ad1e3
......@@ -45,8 +45,7 @@ def write_to_es(device_id):
body["device_id"] = device_id
body["last_modified"] = datetime.datetime.strftime(datetime.datetime.now(pytz.timezone("Asia/Shanghai")),
"%Y-%m-%dT%H:%M:%S.%f")[:-7] + "Z"
print(body)
# es_insert_device_info(device_id, body)
es_insert_device_info(device_id, body)
if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment