camparchimedes commited on
Commit
1606748
Β·
verified Β·
1 Parent(s): 4e842f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -133,12 +133,24 @@ async def handle_message(message: cl.Message):
133
 
134
  if "booking_id" in booking_data:
135
  try:
136
-
137
- combined_message = f"### Informasjon for Bestillingskode:\n\n{response}"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  await cl.Message(content=combined_message).send()
139
-
140
-
141
-
142
  except Exception as e:
143
  await cl.Message(content=f"Error processing booking data: {str(e)}").send()
144
 
 
133
 
134
  if "booking_id" in booking_data:
135
  try:
136
+ table = (
137
+ "| π‘­π’Šπ’†π’π’… | π—œπ—»π—³π—Ό |\n"
138
+ "|:-----------|:---------------------|\n"
139
+ f"| π™±πšŽπšœπšπš’πš•πš•πš’πš—πšπšœπš”πš˜πšπšŽ | {booking_data.get('booking_id', 'N/A')} |\n"
140
+ f"| 𝙁π™ͺ𝙑𝙑 π™‰π™–π™’π™š | {booking_data.get('full_name', 'N/A')} |\n"
141
+ f"| π˜Όπ™’π™€π™ͺ𝙣𝙩 | {booking_data.get('amount', 0)} kr |\n"
142
+ f"| π˜Ύπ™π™šπ™˜π™ -π™žπ™£ | {booking_data.get('checkin', 'N/A')} |\n"
143
+ f"| π˜Ύπ™π™šπ™˜π™ -𝙀π™ͺ𝙩 | {booking_data.get('checkout', 'N/A')} |\n"
144
+ f"| π˜Όπ™™π™™π™§π™šπ™¨π™¨ | {booking_data.get('address', 'N/A')} |\n"
145
+ f"| π™π™¨π™šπ™§ π™„π˜Ώ | {booking_data.get('user_id', 0)} |\n"
146
+ f"| 𝙄𝙣𝙛𝙀 π™π™šπ™­π™© | {booking_data.get('infotext', 'N/A')} |\n"
147
+ f"| π™„π™£π™˜π™‘π™ͺπ™™π™šπ™™ | {booking_data.get('included', 'N/A')} |"
148
+ )
149
+
150
+ # --send both as combined_message
151
+ combined_message = f"### Informasjon for Bestillingskode:\n\n{table}"
152
  await cl.Message(content=combined_message).send()
153
+
 
 
154
  except Exception as e:
155
  await cl.Message(content=f"Error processing booking data: {str(e)}").send()
156