Your Name 4 年之前
父节点
当前提交
147563ff12
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apis/newbot.py

+ 2 - 2
apis/newbot.py

@@ -62,9 +62,9 @@ handler = WebhookHandler('5b05fed81cd9f6f1e75dbf7dda388479')
 def get_aws():
     result=''
     db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
-    cursor=db.query('SELECT from_unixtime(eventtime) as dt,area FROM hhh.aws_monitor order by eventtime desc limit 3;')
+    cursor=db.query('SELECT from_unixtime(eventtime) as dt,area FROM hhh.aws_monitor order by eventtime desc limit 4;')
     for c in cursor:
-        result+=str(c['dt'])+"/"+c['area']+","
+        result+=str(c['dt'])+"/"+c['area']+"\n"
     return result
 
 @app.get("/msg/{item_id}")