stanley-king hace 3 años
padre
commit
6542c29eed
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)