From 28fc7a72acd4321c7ac82b3347e0f2971b125d59 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 25 Jul 2019 11:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=8D=E7=BD=AE=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/location.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/location.py b/handler/location.py index 99bcd91..fc6ca56 100644 --- a/handler/location.py +++ b/handler/location.py @@ -32,6 +32,7 @@ class Location(Resource): sql = f"select gameid,channelid,id,area,type,mode from location where gameid={gameid} and \ channelid={channelid} and in_used=1;" try: + print(f"1 {sql}") data = self.mydb.query(sql) except Exception: log.error("get data from location failed!", exc_info=True) @@ -39,6 +40,7 @@ class Location(Resource): all_data = [] log.debug(f"get data from localtion was {data}") if data: + pdb.set_trace() for line in data: if line: localtion = {}