Your Name 4 years ago
parent
commit
5ac4fedb66
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apis/newbot.py

+ 2 - 1
apis/newbot.py

@@ -73,7 +73,8 @@ def get_aws():
 @app.get("/aws")
 async def aws():
     result='<html><body>'
-    result+='製表時間: '+str(datetime.datetime.now())+'</br>\n<table>'
+    result+='製表時間: '+str(datetime.datetime.now())+'</br></br>\n\n'
+    result+='<table border="1">'
     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;')
     for c in cursor: