Skip to content

Commit

Permalink
More vestigial stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 committed Oct 23, 2023
1 parent a7dda04 commit ffd0d5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions gdrive/export_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ async def survey_upload_response_task(request):
survey_resp = response["response"]

if request.participant:
participant = request.participant
client.upload_participant(
request.participant.first,
request.participant.last,
request.participant.email,
participant.first,
participant.last,
participant.email,
request.responseId,
request.participant.time,
request.participant.date,
participant.time,
participant.date,
survey_resp["ethnicity"],
", ".join(
survey_resp["race"]
Expand All @@ -104,12 +105,12 @@ async def survey_upload_response_task(request):

crud.create_participant(
models.ParticipantModel(
first=request.participant.first,
last=request.participant.last,
email=request.participant.email,
first=participant.first,
last=participant.last,
email=participant.email,
response_id=request.responseId,
time=request.participant.time,
date=request.participant.date,
time=participant.time,
date=participant.date,
ethnicity=survey_resp["ethnicity"],
race=", ".join(
survey_resp["race"]
Expand Down
2 changes: 1 addition & 1 deletion gdrive/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@

except (json.JSONDecodeError, KeyError, FileNotFoundError) as err:
log.warning("Unable to load credentials from VCAP_SERVICES")
log.error("Error: %s", str(err))
log.debug("Error: %s", str(err))

0 comments on commit ffd0d5b

Please sign in to comment.