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