From 4c3d8f5b8d3ad456742ee26e2e903e3d1097e92a Mon Sep 17 00:00:00 2001 From: pengtao Date: Fri, 20 Sep 2019 16:36:37 +0800 Subject: [PATCH] =?UTF-8?q?jc=5Fshow=20=E6=97=A5=E5=BF=97=E6=8B=86?= =?UTF-8?q?=E5=88=86=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jc_show_rewrite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jc_show_rewrite.py b/jc_show_rewrite.py index 7866419..5d60871 100644 --- a/jc_show_rewrite.py +++ b/jc_show_rewrite.py @@ -60,6 +60,7 @@ class JcShowInit: tga_data['date'] = self.time tga_data['channelid'] = self.channelid tga_data['location'] = data['location'] + tga_data['show_time'] = data['show_time'] self.tga.put_event_data(tga_data, f'rep_{self.event_type}') except Exception: log.error(f"write 2 tga failed!,context={data}", exc_info=True) @@ -73,7 +74,7 @@ class JcShowInit: temp = {} temp['account_id'] = account temp['location'] = data_dict['pos'] - temp['ad_show'] = show_time + temp['show_time'] = show_time print(f"{temp}") if data_dict['ad_channel']: for ad_channel in data_dict['ad_channel']: @@ -91,7 +92,7 @@ class JcShowInit: temp = {} temp['account_id'] = account temp['location'] = data_dict['pos'] - temp['ad_show'] = show_time + temp['show_time'] = show_time if data_dict['ad_channel']: for ad_channel in data_dict['ad_channel']: temp['ad_channel'] = ad_channel