From 1e0ee0f746a6eb4783817736bb48f12f59fc2be5 Mon Sep 17 00:00:00 2001 From: jmargutti Date: Thu, 7 Dec 2023 14:49:44 +0200 Subject: [PATCH] remove print clean_kobo --- main.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.py b/main.py index 905db94..fec7d35 100644 --- a/main.py +++ b/main.py @@ -88,12 +88,7 @@ def clean_kobo_data(kobo_data): # remove group names for key in list(kobo_data_clean.keys()): new_key = key.split('/')[-1] - # if new_key not in kobo_data_clean.keys(): kobo_data_clean[new_key] = kobo_data_clean.pop(key) - # else: - # new_value = kobo_data_clean.pop(key) - # if kobo_data_clean[new_key] == "" or kobo_data_clean[new_key] is None: - # kobo_data_clean[new_key] = new_value return kobo_data_clean @@ -110,9 +105,7 @@ async def kobo_to_espocrm(request: Request, dependencies=Depends(required_header client = EspoAPI(request.headers['targeturl'], request.headers['targetkey']) kobo_data = await request.json() - logging.info(kobo_data) kobo_data = clean_kobo_data(kobo_data) - logging.info(kobo_data) attachments = get_attachment_dict(kobo_data) # check if records need to be updated