Your Name 4 роки тому
батько
коміт
7a0f8983fa
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      apis/newbot.py

+ 2 - 2
apis/newbot.py

@@ -66,7 +66,7 @@ def get_aws():
     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 4;')
     for c in cursor:
-        result+=str(c['dt'])+"/"+c['area']+"\n"
+        result+=str(c['dt'])+"\n"+c['area']+"\n"
     return result
 
 
@@ -76,7 +76,7 @@ async def aws():
     result+='製表時間: '+str(datetime.datetime.now())+'</br></br>\n\n'
     result+='<table class="table table-striped">'
     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 10;')
+    cursor=db.query('SELECT from_unixtime(eventtime) as dt,area FROM hhh.aws_monitor order by eventtime desc limit 30;')
     for c in cursor:
         result+="<tr><td>"+str(c['dt'])+"</td><td>"+c['area']+"</td></tr>\n"
     result+='</table></body></html>'