Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -85,6 +85,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
85 |
|
86 |
webhook_url = os.getenv("chat_url")
|
87 |
token = os.getenv("token")
|
|
|
88 |
#return
|
89 |
#url = github(token,foldername)
|
90 |
try:
|
@@ -352,7 +353,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
352 |
#test_set_lide(subtitle, text)
|
353 |
logger.error(res)
|
354 |
#send error to google chat
|
355 |
-
|
356 |
logger.error("Error: %s", str(e))
|
357 |
#raise するとシステムとまるのでアンコメント
|
358 |
#raise HTTPException(status_code=500, detail=str(e))
|
|
|
85 |
|
86 |
webhook_url = os.getenv("chat_url")
|
87 |
token = os.getenv("token")
|
88 |
+
thread_name=""
|
89 |
#return
|
90 |
#url = github(token,foldername)
|
91 |
try:
|
|
|
353 |
#test_set_lide(subtitle, text)
|
354 |
logger.error(res)
|
355 |
#send error to google chat
|
356 |
+
send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
357 |
logger.error("Error: %s", str(e))
|
358 |
#raise するとシステムとまるのでアンコメント
|
359 |
#raise HTTPException(status_code=500, detail=str(e))
|