medical-kiban commited on
Commit
f1cd3d2
ยท
1 Parent(s): 933646f

no message

Browse files
Files changed (1) hide show
  1. 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 {"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,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