18 lines
362 B
Python
18 lines
362 B
Python
|
|
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()
|
|
|