|
@@ -64,7 +64,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 3;')
|
|
|
for c in cursor:
|
|
|
- result+=c['dt']+"/"+c['area']+","
|
|
|
+ result+=str(c['dt'])+"/"+c['area']+","
|
|
|
return result
|
|
|
|
|
|
@app.get("/msg/{item_id}")
|