From ac5bff67ee551461f12570d1d2b4b70e60fb5a66 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 17 Sep 2019 16:50:12 +0800 Subject: [PATCH] =?UTF-8?q?info=20key=E5=88=B7=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/reflush_ad.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handler/reflush_ad.py b/handler/reflush_ad.py index fef08f0..e591848 100644 --- a/handler/reflush_ad.py +++ b/handler/reflush_ad.py @@ -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