添加daily report生成
This commit is contained in:
parent
4eee7cba58
commit
cf29f3bf71
@ -248,14 +248,17 @@ class Report:
|
|||||||
and "jump_appid"='{jump_appid}'
|
and "jump_appid"='{jump_appid}'
|
||||||
and "jump_result"=1 """
|
and "jump_result"=1 """
|
||||||
|
|
||||||
try:
|
data = self.tga.get_data(jump_sql)
|
||||||
jump_num, jump_pre = self.tga.get_data(jump_sql)[0]
|
if data:
|
||||||
return (jump_appid, FROMAPPID_CN.get(jump_appid, None), jump_num, jump_pre)
|
try:
|
||||||
except Exception:
|
jump_num, jump_pre = data[0]
|
||||||
log.error(f"get data from output by {self.gameid} {jump_appid} failed", exc_info=True)
|
return (jump_appid, FROMAPPID_CN.get(jump_appid, None), jump_num, jump_pre)
|
||||||
|
except Exception:
|
||||||
|
log.error(f"get data from output by {self.gameid} {jump_appid} failed", exc_info=True)
|
||||||
|
return None
|
||||||
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
data = dict()
|
data = dict()
|
||||||
data['day'] = self.day
|
data['day'] = self.day
|
||||||
@ -267,11 +270,11 @@ class Report:
|
|||||||
data['output'] = []
|
data['output'] = []
|
||||||
fromappids = FROMAPPID_CN.keys()
|
fromappids = FROMAPPID_CN.keys()
|
||||||
for fromappid in fromappids:
|
for fromappid in fromappids:
|
||||||
pdb.set_trace()
|
|
||||||
data['input'].append(self.get_input_fromappid(fromappid))
|
data['input'].append(self.get_input_fromappid(fromappid))
|
||||||
data['output'].append(self.get_output_fromappid(fromappid))
|
data['output'].append(self.get_output_fromappid(fromappid))
|
||||||
|
print(data)
|
||||||
|
|
||||||
|
|
||||||
print(data)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user