Mike 3 年 前
コミット
8dad033efe
1 ファイル変更3 行追加4 行削除
  1. 3 4
      is_close_changed_notice.py

+ 3 - 4
is_close_changed_notice.py

@@ -101,11 +101,11 @@ db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cm
 
 
 @app.get("/is_close_changed_notice")
-async def is_close_changed_notice(exf_id: int = 0, is_close: str = ''):
+async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
     # 取得合約資料
     q = "SELECT * \
         FROM execute_form \
-        WHERE exf_id = " + str(exf_id)
+        WHERE exf_id = " + exf_id
 
     q_result_count = len(list(db.query(q)))
 
@@ -120,9 +120,8 @@ async def is_close_changed_notice(exf_id: int = 0, is_close: str = ''):
             </head>
             <body>
             """
-        html += "<div>" + r.num + "</div>";
 
-        #html += "<div>" + str(exf_id) + "." + r.num + ", " + is_close + "</div>";
+        html += "<div>" + exf_id + "." + r['num'] + ", " + is_close + "</div>";
         
         if is_close == 'D':
             html += "D: 續約"