From 280d50328dc8c4fed75cb24ac4dba022042781d4 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 16 Oct 2019 14:17:21 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taptap/taptap_report.py b/taptap/taptap_report.py index 8e81708..aacb4cb 100644 --- a/taptap/taptap_report.py +++ b/taptap/taptap_report.py @@ -28,7 +28,7 @@ class TapTapReport: for item in (self.day, self.bday): b_d = self.split_order_data(item) for key in b_d: - all[key].update(b_d[key]) + all.setdefault(key, {}).update(b_d[key]) print(all)