From 17453fc4f6ac146b236daa7672a0fafa1b700caf Mon Sep 17 00:00:00 2001 From: Jacopo Margutti Date: Tue, 19 Nov 2024 20:37:28 +0100 Subject: [PATCH] add info to debug --- routes/routesKobo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/routesKobo.py b/routes/routesKobo.py index db413bd..66c2c64 100644 --- a/routes/routesKobo.py +++ b/routes/routesKobo.py @@ -275,7 +275,9 @@ async def kobo_to_linked_kobo( if request.headers["parentquestion"] not in parent_submission.keys(): continue - name = parent_submission[request.headers["parentquestion"]] + parent_data = clean_kobo_data(parent_submission) + + name = parent_data[request.headers["parentquestion"].lower()] if name in names: continue # avoid duplicate names names.append(name)