This commit is contained in:
2019-04-03 08:47:53 +02:00
parent 811268bd6a
commit 90232d8a87
2 changed files with 38 additions and 14 deletions

17
script/test/TestStats.py Normal file
View File

@@ -0,0 +1,17 @@
from statistics import *
cmds = ["mount%", "unmount%", "dry%", "recover%", "trash%", "robot_recover%", "scan%", "homing%"]
conn = get_stats_connection()
start= "01/03/19"
end= "01/04/19"
print_stats(cmds, start, end)
for cmd in cmds:
print_cmd_stats (cmd, start, end)
print_cmd_records("recover%", start, end, "error")
conn.close()