调整缓存生成脚本

This commit is contained in:
pengtao 2019-09-26 17:17:39 +08:00
parent 597755d610
commit b2b55962d6

View File

@ -24,7 +24,7 @@ def get_area_by_locationid(ldid):
sql = f"select area from location where id={ldid}"
data = mydb.query(sql)
if data:
return data[0][0].replace("[", "").replace("]", "").replace('"', "")
return data[0][0].strip('[]').replace('"', "")
else:
log.error(f"get area from location failed!,sql={sql}")
return area