Getting docker build ready again

This commit is contained in:
Jonas Linter
2025-09-29 09:48:44 +02:00
parent 76176f8a79
commit 958e48b40a
3 changed files with 7 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="7.000"> <OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="7.000">
<ReservationsList> <ReservationsList>
<HotelReservation CreateDateTime="2025-09-29T07:33:12.122570+00:00" ResStatus="Requested" RoomStayReservation="true"> <HotelReservation CreateDateTime="2025-09-29T07:45:29.620017+00:00" ResStatus="Requested" RoomStayReservation="true">
<UniqueID Type="14" ID="e084006b-ae83-4e4d-b2f5-074118cdb3b1"/> <UniqueID Type="14" ID="e084006b-ae83-4e4d-b2f5-074118cdb3b1"/>
<RoomStays> <RoomStays>
<RoomStay> <RoomStay>

View File

@@ -8,6 +8,7 @@ class Customer(Base):
__tablename__ = 'customers' __tablename__ = 'customers'
id = Column(Integer, primary_key=True) id = Column(Integer, primary_key=True)
given_name = Column(String) given_name = Column(String)
contact_id = Column(String, unique=True)
surname = Column(String) surname = Column(String)
name_prefix = Column(String) name_prefix = Column(String)
email_address = Column(String) email_address = Column(String)

View File

@@ -126,10 +126,13 @@ def main():
utm_comment = " | ".join(utm_comment_text) if utm_comment_text else None utm_comment = " | ".join(utm_comment_text) if utm_comment_text else None
offer = data.get("field:angebot_auswaehlen") offer = data.get("field:angebot_auswaehlen")
contact_id = data.get("contact", {}).get("contactId")
# Save customer and reservation to DB # Save customer and reservation to DB
db_customer = DBCustomer( db_customer = DBCustomer(
given_name=first_name, given_name=first_name,
surname=last_name, surname=last_name,
contact_id=contact_id,
name_prefix=name_prefix, name_prefix=name_prefix,
email_address=email, email_address=email,
phone=phone_number, phone=phone_number,
@@ -189,6 +192,8 @@ def main():
) )
# CustomerData # CustomerData
phone_numbers = [(phone_number, PhoneTechType.MOBILE)] if phone_number else [] phone_numbers = [(phone_number, PhoneTechType.MOBILE)] if phone_number else []
customer_data = CustomerData( customer_data = CustomerData(