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