@@ -22,7 +22,7 @@ def __init__(self, client):
2222 self .account = self .client ['Account' ]
2323 self .ticket = self .client ['Ticket' ]
2424
25- def list_tickets (self , open_status = True , closed_status = True , limit = None , all_tickets = None ):
25+ def list_tickets (self , open_status = True , closed_status = True , limit = None , all_tickets = False ):
2626 """List all tickets.
2727
2828 :param boolean open_status: include open tickets
@@ -33,7 +33,6 @@ def list_tickets(self, open_status=True, closed_status=True, limit=None, all_tic
3333 createDate, lastEditDate, accountId, status, updateCount]"""
3434
3535 call = 'getTickets'
36- # print('All Checks ',open_status, closed_status,all_tickets)
3736 if not all ([open_status , closed_status ]):
3837 if open_status :
3938 call = 'getOpenTickets'
@@ -42,10 +41,7 @@ def list_tickets(self, open_status=True, closed_status=True, limit=None, all_tic
4241 else :
4342 raise ValueError ("open_status and closed_status cannot both be False" )
4443
45- if all ([open_status , all_tickets ]):
46- return self .client .call ('Account' , call , mask = mask , iter = all_tickets , limit = limit )
47-
48- return self .client .call ('Account' , call , mask = mask , iter = False , limit = limit )
44+ return self .client .call ('Account' , call , mask = mask , iter = all_tickets , limit = limit )
4945
5046 def list_subjects (self ):
5147 """List all ticket subjects."""
0 commit comments