From e23b5a264b6c8c8defb6b3334bed4154512805fd Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 9 Oct 2019 19:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E6=97=A5=E5=BF=97=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/location.py | 2 +- ops/ad_produce.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/handler/location.py b/handler/location.py index 6d2d2e9..6aa6f49 100644 --- a/handler/location.py +++ b/handler/location.py @@ -55,7 +55,7 @@ class Location(Resource): AND channelid={channelid} and in_used=1;""" try: - print(f"sql={sql}") + #print(f"sql={sql}") data = self.mydb.query(sql) except Exception: log.error("get data from location failed!", exc_info=True) diff --git a/ops/ad_produce.py b/ops/ad_produce.py index 6644d8f..51685b7 100644 --- a/ops/ad_produce.py +++ b/ops/ad_produce.py @@ -171,5 +171,3 @@ def produce_task(): now = datetime.datetime.now() timestamp = int(datetime.datetime.timestamp(now)) my_redis.set("ad_produce_time", timestamp) - del data - del all