Skip to content

Commit

Permalink
Add nother direction to 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 1d1a089 commit 58a457e
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 @@ -225,7 +225,9 @@ def calls_summary(cls, calls):
"""Wrapper for getting calls summary."""
result = cls.summary(calls, ('price', 'length'))
result.update(
cls.summary_group(calls, ('length',), 'direction', ('in', 'out'))
cls.summary_group(
calls, ('length',), 'direction', ('in', 'out', 'redirected')
)
)
result['count'] = len(calls)
result['count_in'] = cls.count_direction(calls, 'in')
Expand Down

0 comments on commit 58a457e

Please sign in to comment.