添加导出率

This commit is contained in:
pengtao 2019-10-22 20:31:46 +08:00
parent 6d71cb44a2
commit 68e9a19e20

View File

@ -292,16 +292,12 @@ class Report:
else:
parms = [(2001, 6001), (2002, 6001)]
data = dict()
data['day'] = self.day
data = list()
for item in parms:
args = {}
args['gameid'], args['channelid'] = item
# key = f"{args['gameid']}#{args['channelid']}"
data['body'] = []
temp = {}
temp['gameid'] = args['gameid']
temp['channelid'] = args['channelid']
@ -330,7 +326,7 @@ class Report:
temp['input'].append(self.get_input_fromappid(**args))
temp['output'].append(self.get_output_fromappid(**args))
print(data)
data['body'].append(temp)
data.append(temp)
return data