调整缓存生成脚本
This commit is contained in:
parent
597755d610
commit
b2b55962d6
@ -24,7 +24,7 @@ def get_area_by_locationid(ldid):
|
|||||||
sql = f"select area from location where id={ldid}"
|
sql = f"select area from location where id={ldid}"
|
||||||
data = mydb.query(sql)
|
data = mydb.query(sql)
|
||||||
if data:
|
if data:
|
||||||
return data[0][0].replace("[", "").replace("]", "").replace('"', "")
|
return data[0][0].strip('[]').replace('"', "")
|
||||||
else:
|
else:
|
||||||
log.error(f"get area from location failed!,sql={sql}")
|
log.error(f"get area from location failed!,sql={sql}")
|
||||||
return area
|
return area
|
||||||
|
Loading…
x
Reference in New Issue
Block a user