Skip to content

Commit

Permalink
add info to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt committed Nov 19, 2024
1 parent 17453fc commit 4b81c6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routes/routesKobo.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ async def kobo_to_linked_kobo(
# create new choice list based on parent form submissions
new_choices_form, kuids, names = [], [], []
for parent_submission in parent_submissions["results"]:
if request.headers["parentquestion"] not in parent_submission.keys():
continue

parent_data = clean_kobo_data(parent_submission)
parent_question = request.headers["parentquestion"].lower()

if parent_question not in parent_data.keys():
continue

name = parent_data[request.headers["parentquestion"].lower()]
if name in names:
Expand Down

0 comments on commit 4b81c6e

Please sign in to comment.