Commit 2c9fceb5 authored by gaoming's avatar gaoming

刷新数据

parent 03a476d2
......@@ -19,7 +19,7 @@ def refresh_cache_locations():
locations = rpc_client['api/hospital/location']().unwrap()
cache_key="hospital_location"
cache_diuration=60
cache_diuration=60*10
#将地理位置信息加入redis缓存
for item in locations:
lat=item.get("baidu_loc_lat") if item.get("baidu_loc_lat") else item.get("google_loc_lat")
......
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