Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|