调整缓存生成脚本

This commit is contained in:
pengtao 2019-09-26 17:16:09 +08:00
parent 0fba5384f7
commit 597755d610

View File

@ -129,7 +129,7 @@ def send_cache_data():
for line in all:
if line:
locationids = json.loads(line.get('locationid'))
for locationid in str(locationids).replace('[','').replace(']','').split(','):
for locationid in str(locationids).strip('[]').split(','):
locationid = locationid.strip()
area_all = get_area_by_locationid(locationid)
for area in area_all.split(','):