From fdbbfec964fe342e63da3b3b52fd3b843b454353 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 9 Oct 2019 19:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E6=97=A5=E5=BF=97=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/ad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/ad.py b/handler/ad.py index ab26602..5a87679 100644 --- a/handler/ad.py +++ b/handler/ad.py @@ -208,6 +208,8 @@ class Ad(Resource): condition = f"id='{self.args['id']}'" self.mydb.update("ad", ad, condition) print(f"status= {ad['status']}") + tt = self.mydb.query(sel_sql) + print(f"new={tt[0][0]}") if str(ad['status']).strip() == str(1): print("aaaa") if rebuild_ad():