Skip to content

Commit

Permalink
misc Hustle Connector fixes (move-coop#558)
Browse files Browse the repository at this point in the history
* Only add limits to GET requests in Hustle connector

* fixes typo in create_leads arg list
  • Loading branch information
ChrisC authored Aug 10, 2021
1 parent 9f8ff7a commit 6891012
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parsons/hustle/hustle.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def _request(self, endpoint, req_type='GET', args=None, payload=None, raise_on_e

headers = {'Authorization': f'Bearer {self.auth_token}'}

parameters = {'limit': PAGE_LIMIT}
parameters = {}
if req_type == 'GET':
parameters = {'limit': PAGE_LIMIT}

if args:
parameters.update(args)
Expand Down Expand Up @@ -393,7 +395,7 @@ def create_leads(self, table, group_id=None):
table.map_columns(LEAD_COLUMN_MAP)

arg_list = ['first_name', 'last_name', 'email', 'phone_number', 'follow_up',
'tag_id', 'group_id']
'tag_ids', 'group_id']

created_leads = []

Expand Down

0 comments on commit 6891012

Please sign in to comment.