Spaces:
Runtime error
Runtime error
Commit ·
33f965d
1
Parent(s): 4f47f48
enhance meeting availability response format for better readability
Browse files
src/services/_meeting_service.py
CHANGED
|
@@ -84,8 +84,13 @@ class MeetingService:
|
|
| 84 |
)
|
| 85 |
|
| 86 |
if available_slots:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
for slot in available_slots:
|
| 88 |
final_response += f"{slot['start']}\n"
|
|
|
|
| 89 |
else:
|
| 90 |
final_response += "No availability found for this duration.\n"
|
| 91 |
return final_response
|
|
|
|
| 84 |
)
|
| 85 |
|
| 86 |
if available_slots:
|
| 87 |
+
final_response += "Please use the following table to present the data in a better way:\n"
|
| 88 |
+
final_response += f"Timezone: {timezone}\n"
|
| 89 |
+
final_response += "Available slots:\n"
|
| 90 |
+
final_response += "-----------------------------\n"
|
| 91 |
for slot in available_slots:
|
| 92 |
final_response += f"{slot['start']}\n"
|
| 93 |
+
final_response += "-----------------------------\n"
|
| 94 |
else:
|
| 95 |
final_response += "No availability found for this duration.\n"
|
| 96 |
return final_response
|