Browse Source

return list only

ming 3 years ago
parent
commit
e7cf88b622
1 changed files with 1 additions and 1 deletions
  1. 1 1
      newbot.py

+ 1 - 1
newbot.py

@@ -194,7 +194,7 @@ def message_text(event):
             TextSendMessage(text=out_result))
             
     if event.message.text=='關鍵字歷史走勢':
-         db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/yodb?charset=utf8mb4')
+        db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/yodb?charset=utf8mb4')
         now = datetime.datetime.now()-datetime.datetime.timedelta(days=1)
         now_start = now.strftime("%Y-%m-%d 00:00:00")
         now_end = now.strftime("%Y-%m-%d 23:59:59")