Fixed comments error

This commit is contained in:
Jonas Linter
2025-09-29 17:36:35 +02:00
parent ebcf2c22dd
commit 642b6cb7a5

View File

@@ -775,7 +775,7 @@ def create_xml_from_db(list: list[Tuple[Reservation, Customer]]):
comments = [c for c in comments if c is not None] comments = [c for c in comments if c is not None]
comments_xml = None comments_xml = None
if not comments: if comments:
comments_data = CommentsData(comments=comments) comments_data = CommentsData(comments=comments)
comments_xml = alpine_bits_factory.create(comments_data, OtaMessageType.RETRIEVE) comments_xml = alpine_bits_factory.create(comments_data, OtaMessageType.RETRIEVE)