tap order 数据写入mysql
This commit is contained in:
parent
bab9637457
commit
5b5dc1002c
@ -25,16 +25,22 @@ class TapTapReport:
|
|||||||
|
|
||||||
def build_report(self):
|
def build_report(self):
|
||||||
all = dict()
|
all = dict()
|
||||||
|
gameid_order = dict()
|
||||||
|
gameid_info = dict()
|
||||||
for item in (self.day, self.bday):
|
for item in (self.day, self.bday):
|
||||||
b_d = self.split_order_data(item)
|
b_d = self.split_order_data(item)
|
||||||
for key in b_d:
|
for key in b_d:
|
||||||
all.setdefault(key, {}).update(b_d[key])
|
gameid_order.setdefault(key, {}).update(b_d[key])
|
||||||
#print(all)
|
|
||||||
diff_order = {}
|
for key in gameid_order:
|
||||||
for key in all:
|
all['gameid'] = key.split("#")[0]
|
||||||
diff_order[key] = all[key].get(self.day, 301) - all[key].get(self.bday, 301)
|
all['catename'] = key.split('#')[1]
|
||||||
pdb.set_trace()
|
all[key]['diff_order'] = gameid_order[key].get(self.day, 301) - gameid_order[key].get(self.bday, 301)
|
||||||
print(diff_order)
|
print(all)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def split_order_data(self, day):
|
def split_order_data(self, day):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user