Skip to content

Commit

Permalink
change to programRegistrationAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsziere committed Jan 22, 2025
1 parent 11b00a4 commit 81a617a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/routes121.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ async def create_121_program_from_kobo(
"label": {"en": str(row["label"][0])},
}
question["options"].append(option)
data["programQuestions"].append(question)
data["programRegistrationAttributes"].append(question)
if row["name"] == "phoneNumber":
koboConnectHeader.append("phoneNumber")
question = {
Expand All @@ -419,7 +419,7 @@ async def create_121_program_from_kobo(
"duplicateCheck": dedupedict[row["name"]],
"placeholder": "",
}
data["programQuestions"].append(question)
data["programRegistrationAttributes"].append(question)

if test_mode:
return JSONResponse(status_code=200, content=data)
Expand Down

0 comments on commit 81a617a

Please sign in to comment.