|
|
@@ -334,9 +334,12 @@ class _AirbnbClient:
|
|
|
.get('hostingDetails', {}).get('stayHostingDetails', {})
|
|
|
.get('rootPlacement', [])
|
|
|
)
|
|
|
+ whoscoming = next((s for s in sections if s.get('sectionId') == 'WHOSCOMING_SECTION'), None)
|
|
|
+ wc_groups = (whoscoming or {}).get('sectionData', {}).get('reservationGroups', [])
|
|
|
+ wc_guests = wc_groups[0].get('guests', []) if wc_groups else []
|
|
|
facepile = next((s for s in sections if s.get('sectionId') == 'FACEPILE_SECTION'), None)
|
|
|
- guests = (facepile or {}).get('sectionData', {}).get('guests', [])
|
|
|
- name = guests[0].get('name') if guests else None
|
|
|
+ fp_guests = (facepile or {}).get('sectionData', {}).get('guests', [])
|
|
|
+ name = (wc_guests[0].get('name') if wc_guests else None) or (fp_guests[0].get('name') if fp_guests else None)
|
|
|
|
|
|
checkinout = next((s for s in sections if s.get('sectionId') == 'CHECK_IN_CHECK_OUT_SECTION'), None)
|
|
|
ci_out_data = (checkinout or {}).get('sectionData') or {}
|