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))