From d82773212ea5a4abf52798d62c9c2b05e0247f9a Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 18 Sep 2019 17:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B9=BF=E5=91=8A=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=97=B6=EF=BC=8C=E5=B9=BF=E5=91=8A=E4=BD=8D=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=AD=98=E5=9C=A8=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ad_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index 1d46f5d..c22d89d 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -33,7 +33,7 @@ def get_area_by_locationid(ldid): def split_ad_info(localtionid, line): # 从locationid获取位置相关属性,与ad信息打包,产生提供给接口用的数据 new = copy.deepcopy(line) - location_sql = f"select x,y,x_offset,y_offset,type,mode,ld_property from location WHERE in_used=1 and id={localtionid}" + location_sql = f"select x,y,x_offset,y_offset,type,mode,ld_property from location WHERE id={localtionid}" data = mydb.query(location_sql) try: new['x'], new['y'], new['x_offset'], new['y_offset'], new['type'], new['mode'], new['ld_property'] = data[0]