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

+ 2 - 2
apis/newbot.py

@@ -72,9 +72,9 @@ def get_aws():
 
 @app.get("/aws")
 async def aws():
-    result='<html><body>'
+    result='<html><head><link href="https://getbootstrap.com/docs/4.1/dist/css/bootstrap.min.css" rel="stylesheet"></head><body>'
     result+='製表時間: '+str(datetime.datetime.now())+'</br></br>\n\n'
-    result+='<table border="1">'
+    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;')
     for c in cursor: