From 1b46402137b068ccf47b9cf9282b5d28e9b385a9 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 23 Oct 2019 11:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daily_report/dreport.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/daily_report/dreport.py b/daily_report/dreport.py index 4831286..5f07e4f 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -292,7 +292,10 @@ class Report: temp = {} temp['gameid'] = args['gameid'] temp['channelid'] = args['channelid'] - + temp['input'] = defaultdict(list) + temp['output'] = defaultdict(list) + temp['input'] = [] + temp['output'] = [] g = GetTgaConfig() item = g.get_api_key(args['gameid']) url = item['url'] @@ -308,10 +311,6 @@ class Report: if not f_keys: continue for f_key in f_keys: - temp['input'] = defaultdict(list) - temp['output'] = defaultdict(list) - temp['input'] = [] - temp['output'] = [] args['fromappid'] = f_key args['fromappid_cn'] = fromappids.get(f_key, None) or "未知" temp['input'].append(self.get_input_fromappid(**args))