Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
mysite/interpreter/google_chat.py
CHANGED
@@ -124,5 +124,6 @@ def send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_u
|
|
124 |
else:
|
125 |
print(f"Failed to post message: {response.status_code}, {response.text}")
|
126 |
|
127 |
-
|
|
|
128 |
return thread_name
|
|
|
124 |
else:
|
125 |
print(f"Failed to post message: {response.status_code}, {response.text}")
|
126 |
|
127 |
+
response_data = response.json()
|
128 |
+
thread_name = response_data['thread']['name']
|
129 |
return thread_name
|