info key刷新时间调整
This commit is contained in:
parent
b711188d22
commit
ac5bff67ee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user