tap order 数据写入mysql

This commit is contained in:
pengtao 2019-10-16 14:20:35 +08:00
parent 280d50328d
commit 4f789fe445

View File

@ -29,7 +29,11 @@ class TapTapReport:
b_d = self.split_order_data(item)
for key in b_d:
all.setdefault(key, {}).update(b_d[key])
print(all)
#print(all)
diff_order = {}
for key in all:
diff_order[key] = all.get(self.day, 0) - all.get(self.bday, 0)
print(diff_order)
def split_order_data(self, day):