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