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