From 1dab372b203bc03786809a5a4635609e97fa5c7e Mon Sep 17 00:00:00 2001 From: Chinaholmesfans <50159534+Chinaholmesfans@users.noreply.github.com> Date: Fri, 14 Aug 2020 13:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8=E6=AF=8F?= =?UTF-8?q?=E6=97=A5=E9=9B=B6=E7=82=B9=E6=97=B6=E4=BC=9A=E5=A4=9A=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=BE=88=E5=A4=9A=E6=9D=A1=E5=89=8D=E4=B8=80=E5=A4=A9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- InsideSummary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InsideSummary.py b/InsideSummary.py index 3d3db0e..33f2d00 100644 --- a/InsideSummary.py +++ b/InsideSummary.py @@ -92,7 +92,8 @@ def insert(res): # 创建游标对象 cursor = conn.cursor() - date = data['lastUpdateTime'] + date = data['lastUpdateTime'].split(' ',1)[0] + print(date) sql = 'delete from home_realtime_datas where updatedTime like "%s"'%(date+'%') print('The update was successful') try: