添加put方法刷新locationid
This commit is contained in:
parent
2c79f975e2
commit
f5197dde63
@ -138,7 +138,7 @@ class Location(Resource):
|
|||||||
if data:
|
if data:
|
||||||
condition = f"id='{self.args['id']}'"
|
condition = f"id='{self.args['id']}'"
|
||||||
self.mydb.update("location", location, condition)
|
self.mydb.update("location", location, condition)
|
||||||
for locationid in location['id']:
|
for locationid in location['id'].split(','):
|
||||||
self.reflush_location(locationid)
|
self.reflush_location(locationid)
|
||||||
return jsonify({'code': 200})
|
return jsonify({'code': 200})
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user