Conditions | 4 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
1 | from lib.actions import BaseAction |
||
20 | def run(self, filter_issues='open', sort='create_at', email=None, tag=None, data=None): |
||
21 | params = { |
||
22 | 'filter': filter_issues, |
||
23 | 'sort': sort, |
||
24 | } |
||
25 | if email: |
||
26 | params['email'] = email |
||
27 | if tag: |
||
28 | params['tag'] = tag |
||
29 | if data: |
||
30 | params['data'] = data |
||
31 | |||
32 | response = self._api_get('/conversations', params=params) |
||
33 | conversations = response['conversations'] |
||
34 | |||
35 | filtered_conversations = map(self.filter_conversation, conversations) |
||
36 | return filtered_conversations |
||
37 | |||
46 |