Commit e03712e8 authored by 赵威's avatar 赵威

Merge branch 'offic' into 'master'

update info

See merge request !64
parents b4f588d5 0202312e
......@@ -46,6 +46,8 @@ 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"
body["city_cn"] = ""
body["city_en"] = ""
es_insert_device_info(device_id, body)
......
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