调整日报规则 添加一些gameid
This commit is contained in:
parent
6e75f61592
commit
319fadb8cc
@ -245,7 +245,10 @@ class Report:
|
|||||||
activa = args['tga'].get_data(activa_sql)[0][0] or 0
|
activa = args['tga'].get_data(activa_sql)[0][0] or 0
|
||||||
new = args['tga'].get_data(new_sql)[0][0] or 0
|
new = args['tga'].get_data(new_sql)[0][0] or 0
|
||||||
share = args['tga'].get_data(share_sql)[0][0] or 0
|
share = args['tga'].get_data(share_sql)[0][0] or 0
|
||||||
|
if activa:
|
||||||
timeonlie = round(int(args['tga'].get_data(timeonlie_sql)[0][0] or 0) / activa, 2)
|
timeonlie = round(int(args['tga'].get_data(timeonlie_sql)[0][0] or 0) / activa, 2)
|
||||||
|
else:
|
||||||
|
timeonlie = 0
|
||||||
|
|
||||||
jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0
|
jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0
|
||||||
jump_per = round((100 * jumpout) / activa, 2)
|
jump_per = round((100 * jumpout) / activa, 2)
|
||||||
@ -482,7 +485,7 @@ class Report:
|
|||||||
|
|
||||||
mp = MpInterface()
|
mp = MpInterface()
|
||||||
fromappids = mp.get_fromappid_cn(args['gameid'], args['channelid'])
|
fromappids = mp.get_fromappid_cn(args['gameid'], args['channelid'])
|
||||||
log.info(f"1={fromappids} 2={ss_input_fromappids} 3={ss_output_fromappids}")
|
# log.info(f"1={fromappids} 2={ss_input_fromappids} 3={ss_output_fromappids}")
|
||||||
if fromappids and ss_input_fromappids:
|
if fromappids and ss_input_fromappids:
|
||||||
for item in ss_input_fromappids:
|
for item in ss_input_fromappids:
|
||||||
args['fromappid'] = item
|
args['fromappid'] = item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user