Skip to content

Commit

Permalink
Commit variable name fix and CI tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarnabee committed Mar 6, 2023
1 parent 309ee4b commit 0cbf762
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

from api import oauth


def build_request(form_data):
"""Take form data and return a dict to PUT to Toolhub."""
multi_fields = ["audiences", "content_types", "tasks", "subject_domains"]
field = task_data["field"]
field = form_data["field"]
if field in multi_fields:
value = form_data["value"].split(",")
else:
Expand Down Expand Up @@ -119,4 +120,4 @@ def put(self, tool, data, token):
# Having to do a manual json.dumps() to ensure proper formatting
response = requests.put(url, data=json.dumps(data), headers=headers)
api_response = response.json()
return api_response
return api_response

0 comments on commit 0cbf762

Please sign in to comment.