Skip to content
Snippets Groups Projects
Commit 93da8234 authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

..

parent 065a5c26
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,9 @@ plannings = req.json()
for pla in plannings["rows"]:
schedule_date = pla.get("value",{}).get("ScheduleDate")
customer = pla.get("value",{}).get("Customer")
if schedule_date and customer:
contact = customer.get("Contact")
customer = pla.get("value",{}).get("Customer", {})
contact = customer.get("Contact")
if schedule_date and contact:
lang = customer.get("Lang", "en")
name = contact.get("Name")
gender = contact.get("Gender", "none")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment