Commit
·
6e530d5
1
Parent(s):
2456270
update
Browse files
controllers/gra_03_programfromdoc/programfromdoc.py
CHANGED
@@ -10,6 +10,7 @@ from typing import List, Optional
|
|
10 |
from mysite.interpreter.process import no_process_file,process_file
|
11 |
#from controllers.gra_04_database.rides import test_set_lide
|
12 |
import requests
|
|
|
13 |
|
14 |
val = """
|
15 |
# 社員がプロフィールを登録・公開し、お互いに参照できるシステム
|
@@ -97,7 +98,9 @@ fastapiはrouter の作成
|
|
97 |
"""
|
98 |
|
99 |
def send_to_google_chat(message: str):
|
100 |
-
webhook_url =
|
|
|
|
|
101 |
headers = {'Content-Type': 'application/json; charset=UTF-8'}
|
102 |
data = {'text': message}
|
103 |
response = requests.post(webhook_url, headers=headers, json=data)
|
|
|
10 |
from mysite.interpreter.process import no_process_file,process_file
|
11 |
#from controllers.gra_04_database.rides import test_set_lide
|
12 |
import requests
|
13 |
+
import os
|
14 |
|
15 |
val = """
|
16 |
# 社員がプロフィールを登録・公開し、お互いに参照できるシステム
|
|
|
98 |
"""
|
99 |
|
100 |
def send_to_google_chat(message: str):
|
101 |
+
webhook_url = os.getenv('WEBHOOK_URL')
|
102 |
+
if not webhook_url:
|
103 |
+
raise ValueError("WEBHOOK_URL environment variable not set")
|
104 |
headers = {'Content-Type': 'application/json; charset=UTF-8'}
|
105 |
data = {'text': message}
|
106 |
response = requests.post(webhook_url, headers=headers, json=data)
|