From 26492b94d0daaf6328a9e792d1da17f28076ad55 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 17 Sep 2019 17:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0put=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=88=B7=E6=96=B0locationid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/location.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handler/location.py b/handler/location.py index 6952cb6..d77a49e 100644 --- a/handler/location.py +++ b/handler/location.py @@ -138,8 +138,7 @@ class Location(Resource): if data: condition = f"id='{self.args['id']}'" self.mydb.update("location", location, condition) - for locationid in location['id'].split(','): - self.reflush_location(locationid) + self.reflush_location(location['id']) return jsonify({'code': 200}) else: return jsonify({'code': 404, 'message': f"{self.args['id']} not found in mysql!"})