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

+ 1 - 1
apis/newbot.py

@@ -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}")