添加daily report生成
This commit is contained in:
parent
d6909d76de
commit
88586e63c7
@ -169,7 +169,6 @@ class Report:
|
|||||||
ad_101 = self.tga.get_data(ad_101_sql)[0][0]
|
ad_101 = self.tga.get_data(ad_101_sql)[0][0]
|
||||||
ad_1 = self.tga.get_data(ad_1_sql)[0][0]
|
ad_1 = self.tga.get_data(ad_1_sql)[0][0]
|
||||||
ad_201 = self.tga.get_data(ad_201_sql)[0][0]
|
ad_201 = self.tga.get_data(ad_201_sql)[0][0]
|
||||||
pdb.set_trace()
|
|
||||||
return [activa, new, share, timeonlie, ad_101, ad_1, ad_201]
|
return [activa, new, share, timeonlie, ad_101, ad_1, ad_201]
|
||||||
except Exception:
|
except Exception:
|
||||||
log.error(f"get data from tga failed ,{self.gameid}", exc_info=True)
|
log.error(f"get data from tga failed ,{self.gameid}", exc_info=True)
|
||||||
@ -259,7 +258,6 @@ class Report:
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
data = dict()
|
data = dict()
|
||||||
pdb.set_trace()
|
|
||||||
data['day'] = self.day
|
data['day'] = self.day
|
||||||
data['gameid'] = self.gameid
|
data['gameid'] = self.gameid
|
||||||
data['all'] = self.get_all_data()
|
data['all'] = self.get_all_data()
|
||||||
@ -267,9 +265,9 @@ class Report:
|
|||||||
data['output'] = defaultdict(list)
|
data['output'] = defaultdict(list)
|
||||||
data['input'] = []
|
data['input'] = []
|
||||||
data['output'] = []
|
data['output'] = []
|
||||||
data['input'].append(self.get_input_fromappid())
|
|
||||||
fromappids = ['wxcff7381e631cf54e']
|
fromappids = ['wxcff7381e631cf54e']
|
||||||
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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user