Skip to content

Commit

Permalink
Include call length in summary
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed May 27, 2015
1 parent 713e195 commit 188a322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion odorik/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
SORT_ORDER = [
'id',
'public_number',
'call_count',
'sms_count',
'call_count',
'call_length',
'bytes_down',
'bytes_up',
'bytes_total',
Expand Down Expand Up @@ -692,6 +693,7 @@ def process_line(self, line, from_date, to_date):
'public_number': line['public_number'],
'id': line['id'],
'call_count': len(calls),
'call_length': calls_summary['length'],
'sms_count': len(messages),
'bytes_total': data_summary['bytes_total'],
'data_price': data_summary['price'],
Expand Down

0 comments on commit 188a322

Please sign in to comment.