Spaces:
Sleeping
Sleeping
Commit
ยท
f1cd3d2
1
Parent(s):
933646f
no message
Browse files- app/app.py +5 -5
app/app.py
CHANGED
|
@@ -175,17 +175,17 @@ def check_room_free_slots_over_1h(date_str=None):
|
|
| 175 |
"items": [{"id": room["email"]} for room in rooms]
|
| 176 |
}
|
| 177 |
|
| 178 |
-
print(f"freebusy
|
| 179 |
try:
|
| 180 |
freebusy_result = service.freebusy().query(body=body).execute()
|
| 181 |
calendars_busy_info = freebusy_result.get('calendars', {})
|
| 182 |
-
print(f"freebusy
|
| 183 |
except Exception as e:
|
| 184 |
-
print(f"freebusy
|
| 185 |
return f"FreeBusy API ๅคฑๆ: {e}"
|
| 186 |
|
| 187 |
output_lines.append("-" * 30)
|
| 188 |
-
print(f"freebusy
|
| 189 |
|
| 190 |
# --- ๊ฐ ํ์์ค๋ณ๋ก ๋น ์๊ฐ ๊ณ์ฐ ๋ฐ ์ถ๋ ฅ ---
|
| 191 |
for room in rooms:
|
|
@@ -283,7 +283,7 @@ def calendar_main(input_string: str):
|
|
| 283 |
return
|
| 284 |
|
| 285 |
free_rooms = check_room_free_slots_over_1h(formatted_date)
|
| 286 |
-
print(f"response {free_rooms}")
|
| 287 |
if free_rooms:
|
| 288 |
response = search_calendar(free_rooms, f"{formatted_date}ใซ{min_capacity}ๅใๅ
ฅใใไผ่ญฐๅฎคใๆใใฆใใ ใใ{optional_arg}ใๅ็ญใฏใทใณใใซใซ[ไผ่ญฐๅฎคๅ] ๅฎๅก ็ฉบใๆ้ใฎใใฉใผใใใใงใใฆใใ ใใ")
|
| 289 |
return response
|
|
|
|
| 175 |
"items": [{"id": room["email"]} for room in rooms]
|
| 176 |
}
|
| 177 |
|
| 178 |
+
print(f"freebusy 1")
|
| 179 |
try:
|
| 180 |
freebusy_result = service.freebusy().query(body=body).execute()
|
| 181 |
calendars_busy_info = freebusy_result.get('calendars', {})
|
| 182 |
+
print(f"freebusy 2")
|
| 183 |
except Exception as e:
|
| 184 |
+
print(f"freebusy 3")
|
| 185 |
return f"FreeBusy API ๅคฑๆ: {e}"
|
| 186 |
|
| 187 |
output_lines.append("-" * 30)
|
| 188 |
+
print(f"freebusy 4")
|
| 189 |
|
| 190 |
# --- ๊ฐ ํ์์ค๋ณ๋ก ๋น ์๊ฐ ๊ณ์ฐ ๋ฐ ์ถ๋ ฅ ---
|
| 191 |
for room in rooms:
|
|
|
|
| 283 |
return
|
| 284 |
|
| 285 |
free_rooms = check_room_free_slots_over_1h(formatted_date)
|
| 286 |
+
print(f"\n โโโโโโโ response {free_rooms} \n")
|
| 287 |
if free_rooms:
|
| 288 |
response = search_calendar(free_rooms, f"{formatted_date}ใซ{min_capacity}ๅใๅ
ฅใใไผ่ญฐๅฎคใๆใใฆใใ ใใ{optional_arg}ใๅ็ญใฏใทใณใใซใซ[ไผ่ญฐๅฎคๅ] ๅฎๅก ็ฉบใๆ้ใฎใใฉใผใใใใงใใฆใใ ใใ")
|
| 289 |
return response
|