Spaces:
Running
Running
Commit ยท
bf73759
1
Parent(s): 8c19994
no message
Browse files- app/app.py +3 -2
app/app.py
CHANGED
|
@@ -120,8 +120,7 @@ def get_oauth_credentials():
|
|
| 120 |
# ๋ค์ ์คํ์ ์ํด ์๋ก ๋ฐ๊ธ๋ฐ๊ฑฐ๋ ๊ฐฑ์ ๋ ์ธ์ฆ ์ ๋ณด๋ฅผ token.json ํ์ผ์ ์ ์ฅํฉ๋๋ค.
|
| 121 |
with open(TOKEN_FILENAME, 'w') as token:
|
| 122 |
token.write(creds.to_json())
|
| 123 |
-
|
| 124 |
-
print(creds.to_json())
|
| 125 |
return creds
|
| 126 |
|
| 127 |
|
|
@@ -133,6 +132,8 @@ def check_room_free_slots_over_1h(date_str=None):
|
|
| 133 |
# --- ์ธ์ฆ ๋ฐ ์๋น์ค ๋น๋ ---
|
| 134 |
try:
|
| 135 |
creds = get_oauth_credentials()
|
|
|
|
|
|
|
| 136 |
service = build('calendar', 'v3', credentials=creds)
|
| 137 |
except Exception as e:
|
| 138 |
print(f"่ช่จผใจใฉใผ: {e}")
|
|
|
|
| 120 |
# ๋ค์ ์คํ์ ์ํด ์๋ก ๋ฐ๊ธ๋ฐ๊ฑฐ๋ ๊ฐฑ์ ๋ ์ธ์ฆ ์ ๋ณด๋ฅผ token.json ํ์ผ์ ์ ์ฅํฉ๋๋ค.
|
| 121 |
with open(TOKEN_FILENAME, 'w') as token:
|
| 122 |
token.write(creds.to_json())
|
| 123 |
+
|
|
|
|
| 124 |
return creds
|
| 125 |
|
| 126 |
|
|
|
|
| 132 |
# --- ์ธ์ฆ ๋ฐ ์๋น์ค ๋น๋ ---
|
| 133 |
try:
|
| 134 |
creds = get_oauth_credentials()
|
| 135 |
+
print("-----------------------")
|
| 136 |
+
print(creds.to_json())
|
| 137 |
service = build('calendar', 'v3', credentials=creds)
|
| 138 |
except Exception as e:
|
| 139 |
print(f"่ช่จผใจใฉใผ: {e}")
|