From 4f789fe445800f06b3bbb3358d02496a9f518523 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 16 Oct 2019 14:20:35 +0800 Subject: [PATCH] =?UTF-8?q?tap=20order=20=20=E6=95=B0=E6=8D=AE=E5=86=99?= =?UTF-8?q?=E5=85=A5mysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taptap/taptap_report.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/taptap/taptap_report.py b/taptap/taptap_report.py index aacb4cb..36ea84e 100644 --- a/taptap/taptap_report.py +++ b/taptap/taptap_report.py @@ -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):