info key刷新时间调整

This commit is contained in:
pengtao 2019-09-17 16:50:12 +08:00
parent b711188d22
commit ac5bff67ee

View File

@ -61,8 +61,7 @@ class RelushADinfo(Resource):
sql = f"SELECT area FROM `location` WHERE id={locationid}"
data = self.mydb.query(sql)
if data:
pdb.set_trace()
return data[0].replace("[", "").replace("]", "").replace('"', "").split(',')
return data[0][0].replace("[", "").replace("]", "").replace('"', "").split(',')
else:
log.error(f"get area from db failed,location={locationid}!")
return None