stanley-king 3 năm trước cách đây
mục cha
commit
6542c29eed
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      plot/app.py

+ 2 - 1
plot/app.py

@@ -48,7 +48,7 @@ def index():
     else:
         interval = int(interval)
 
-    buf = dataCenter.draw_plot(time_stamp, 
+    buf = dataCenter.draw_plot(time_stamp,
                                interval=interval,
                                chname=chname,
                                quality=quality,
@@ -64,6 +64,7 @@ def days():
     dates = dataCenter.days()
     e_time = time.time()
     print('time=', e_time - s_time)
+    app.logger.info('time=%f', e_time - s_time)
     dates.reverse()
     dates = dates[0:30]
     return jsonify(dates)