|
@@ -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:
|