添加导出率

This commit is contained in:
pengtao 2019-10-23 11:00:32 +08:00
parent 800a863571
commit 5396a844ff

View File

@ -183,7 +183,7 @@ class Report:
activa = args['tga'].get_data(activa_sql)[0][0]
new = args['tga'].get_data(new_sql)[0][0]
share = args['tga'].get_data(share_sql)[0][0]
timeonlie = args['tga'].get_data(timeonlie_sql)[0][0]
timeonlie = args['tga'].get_data(timeonlie_sql)[0][0] or 0
ad_101 = args['tga'].get_data(ad_101_sql)[0][0]
ad_1 = args['tga'].get_data(ad_1_sql)[0][0]
ad_201 = args['tga'].get_data(ad_201_sql)[0][0]
@ -279,7 +279,7 @@ class Report:
def run(self):
if self.project == 'mini_games':
parms = [(1004, 6001), (2001, 6001), (1001, 6001)]
parms = [(1004, 6001), (1011, 6001), (1001, 6001)]
else:
parms = [(2001, 6001), (2002, 6001)]