Really ensuring res_id isn't ""
This commit is contained in:
@@ -800,9 +800,6 @@ def _process_single_reservation(reservation: Reservation, customer: Customer, me
|
|||||||
klick_id = str(klick_id)
|
klick_id = str(klick_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
utm_medium = (
|
utm_medium = (
|
||||||
str(reservation.utm_medium)
|
str(reservation.utm_medium)
|
||||||
if reservation.utm_medium is not None and str(reservation.utm_medium) != ""
|
if reservation.utm_medium is not None and str(reservation.utm_medium) != ""
|
||||||
@@ -813,6 +810,9 @@ def _process_single_reservation(reservation: Reservation, customer: Customer, me
|
|||||||
if klick_id is not None and len(klick_id) > 64:
|
if klick_id is not None and len(klick_id) > 64:
|
||||||
klick_id = klick_id[:64]
|
klick_id = klick_id[:64]
|
||||||
|
|
||||||
|
if klick_id is "":
|
||||||
|
klick_id = None
|
||||||
|
|
||||||
hotel_res_id_data = HotelReservationIdData(
|
hotel_res_id_data = HotelReservationIdData(
|
||||||
res_id_type="13",
|
res_id_type="13",
|
||||||
res_id_value=klick_id,
|
res_id_value=klick_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user