test
Browse files- controllers/autoscript +1 -0
- mysite/interpreter/process.py +6 -1
controllers/autoscript
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 283c27d25e8da19db61569b870a57da6322a50a0
|
mysite/interpreter/process.py
CHANGED
@@ -39,11 +39,15 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url):
|
|
39 |
{
|
40 |
"header": {
|
41 |
"title": title,
|
42 |
-
"subtitle": subtitle
|
43 |
},
|
44 |
"sections": [
|
45 |
{
|
46 |
"widgets": [
|
|
|
|
|
|
|
|
|
|
|
47 |
{
|
48 |
"textParagraph": {
|
49 |
"text": "<b>{}</b>".format(link_text)
|
@@ -70,6 +74,7 @@ def send_google_chat_card(webhook_url, title, subtitle, link_text, link_url):
|
|
70 |
]
|
71 |
}
|
72 |
|
|
|
73 |
response = requests.post(webhook_url, headers=headers, data=json.dumps(card_message))
|
74 |
|
75 |
if response.status_code == 200:
|
|
|
39 |
{
|
40 |
"header": {
|
41 |
"title": title,
|
|
|
42 |
},
|
43 |
"sections": [
|
44 |
{
|
45 |
"widgets": [
|
46 |
+
{
|
47 |
+
"textParagraph": {
|
48 |
+
"text": subtitle
|
49 |
+
}
|
50 |
+
},
|
51 |
{
|
52 |
"textParagraph": {
|
53 |
"text": "<b>{}</b>".format(link_text)
|
|
|
74 |
]
|
75 |
}
|
76 |
|
77 |
+
|
78 |
response = requests.post(webhook_url, headers=headers, data=json.dumps(card_message))
|
79 |
|
80 |
if response.status_code == 200:
|