From 4d3c87f51593942cb0ecffbc2b6fd01a95620866 Mon Sep 17 00:00:00 2001 From: pengtao Date: Sun, 29 Sep 2019 14:18:34 +0800 Subject: [PATCH] fix bug --- ad_interface_tornado.py | 1 - ops/ad_produce.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 99deb26..5901fe5 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -136,7 +136,6 @@ class DispatchHandler(tornado.web.RequestHandler): def _selfGetAdList(self): - pdb.set_trace() try: input = json.loads(self.get_query_argument('body')) gameid = input['gameid'] diff --git a/ops/ad_produce.py b/ops/ad_produce.py index bb9251e..f0c5f94 100644 --- a/ops/ad_produce.py +++ b/ops/ad_produce.py @@ -137,7 +137,7 @@ def produce_task(): line['locationid'] = locationid line['area'] = area str01 = f"{line.get('gameid', 0)}_{locationid}_{area}" - key = "ad::{0}::{1}::{2}".format(str01, area, locationid) + key = "ad::{0}::{1}::{2}::{3}".format(str01, line['channelid'], area, locationid) if int(line['ad_num']) == 0: sadd_adkey(key, line) print(f"add {line} 2 {key}!")