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() ...@@ -44,9 +44,9 @@ plannings = req.json()
for pla in plannings["rows"]: for pla in plannings["rows"]:
schedule_date = pla.get("value",{}).get("ScheduleDate") schedule_date = pla.get("value",{}).get("ScheduleDate")
customer = pla.get("value",{}).get("Customer") customer = pla.get("value",{}).get("Customer", {})
if schedule_date and customer: contact = customer.get("Contact")
contact = customer.get("Contact") if schedule_date and contact:
lang = customer.get("Lang", "en") lang = customer.get("Lang", "en")
name = contact.get("Name") name = contact.get("Name")
gender = contact.get("Gender", "none") 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