Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -78,7 +78,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
78 |
logger.info("Received Body: %s", body_str)
|
79 |
body_json = json.loads(body_str)
|
80 |
events = body_json.get("events", [])
|
81 |
-
|
82 |
webhook_url = os.getenv("chat_url")
|
83 |
token = os.getenv("token")
|
84 |
#url = github(token,foldername)
|
@@ -101,7 +101,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
101 |
|
102 |
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
103 |
|
104 |
-
return
|
105 |
|
106 |
for event in events:
|
107 |
if event["type"] == "message" and event["message"]["type"] == "text":
|
|
|
78 |
logger.info("Received Body: %s", body_str)
|
79 |
body_json = json.loads(body_str)
|
80 |
events = body_json.get("events", [])
|
81 |
+
|
82 |
webhook_url = os.getenv("chat_url")
|
83 |
token = os.getenv("token")
|
84 |
#url = github(token,foldername)
|
|
|
101 |
|
102 |
send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
|
103 |
|
104 |
+
#return
|
105 |
|
106 |
for event in events:
|
107 |
if event["type"] == "message" and event["message"]["type"] == "text":
|