I have a code that runs trough the facade and sum the duration of the calls that meets criteria, the call duration is on milliseconds. Today, the output is on millisecond but I want to display is on the following format hh"mm'ss.
Please advise, Nir
sumout = 0
x = 0
y = 0
for call in facade.getCalls(filter=[Call.setup_start_ts >= beg_ts, Call.setup_start_ts <= end_ts, Call.src_user == user]):
try:
sumout += call.call_time
x += 1
except TypeError:
pass;
facade.addResult({
'user':user,
'total_Outgoing': x,
'total_Outgoing_Duration': sumout,})