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 = {}