From 1942fe7e917112f234f0b0718f8f5e092371011d Mon Sep 17 00:00:00 2001 From: pengtao Date: Fri, 18 Oct 2019 16:17:24 +0800 Subject: [PATCH] =?UTF-8?q?jcshow=20=E6=95=B0=E6=8D=AE=E6=8B=86=E8=A7=A3?= =?UTF-8?q?=E5=86=99=E5=85=A5=E6=95=B0=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jcshow_collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcshow_collect.py b/jcshow_collect.py index b67756f..ec59266 100644 --- a/jcshow_collect.py +++ b/jcshow_collect.py @@ -71,7 +71,7 @@ class JcShow: if data_dict['ad_channel']: for ad_channel in data_dict['ad_channel']: - all_data(ad_channel, 0) + 1 + all_data[ad_channel] = all_data.get(ad_channel, 0) + 1 return all_data