|
|
@@ -169,7 +169,7 @@ print ('\n發送執行項目通知(無預定完成日期) (執行單位) start..
|
|
|
execute_man_list = ['hhh_edit@hhh.com.tw','hhh_mk@hhh.com.tw','hhh_web@hhh.com.tw','hhh_video@hhh.com.tw','agent@hhh.com.tw','hhh_admin@hhh.com.tw','hhh_sales@hhh.com.tw']
|
|
|
|
|
|
for execute_man in execute_man_list:
|
|
|
- html = """
|
|
|
+ html2 = """
|
|
|
<!DOCTYPE html>
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
@@ -182,9 +182,9 @@ for execute_man in execute_man_list:
|
|
|
|
|
|
if q2_result_count > 0: # 有逾期執行項目
|
|
|
# html += "<div style='color:blue;'><b>逾期執行項目: 共" + str(q2_result_count) + "筆</b><br><br></div>"
|
|
|
- html += "<div style='color:blue;'><b>" + execute_man + " 無預定完成日期: 共" + str(q2_result_count) + "筆</b><br><br></div>"
|
|
|
+ html2 += "<div style='color:blue;'><b>" + execute_man + " 無預定完成日期: 共" + str(q2_result_count) + "筆</b><br><br></div>"
|
|
|
|
|
|
- html += "<table style='width:100%;border-collapse: collapse;' border='1'> \
|
|
|
+ html2 += "<table style='width:100%;border-collapse: collapse;' border='1'> \
|
|
|
<tr style='text-align:left;'> \
|
|
|
<th style='width:5%;'>#</th> \
|
|
|
<th>合約</th> \
|
|
|
@@ -223,12 +223,12 @@ for execute_man in execute_man_list:
|
|
|
|
|
|
count += 1
|
|
|
|
|
|
- html += "</table>";
|
|
|
+ html2 += "</table>";
|
|
|
else:
|
|
|
print (execute_man + " 皆有預定完成日期,不須處理")
|
|
|
- html += "<div>" + execute_man + " 皆有預定完成日期,不須處理)</div>"
|
|
|
+ html2 += "<div>" + execute_man + " 皆有預定完成日期,不須處理)</div>"
|
|
|
|
|
|
- html += """
|
|
|
+ html2 += """
|
|
|
</body>
|
|
|
</html>
|
|
|
"""
|
|
|
@@ -236,6 +236,6 @@ for execute_man in execute_man_list:
|
|
|
# 寄送逾期執行表單Email通知
|
|
|
email = 'mike@choozmo.com'
|
|
|
print ("發送Email: " + email)
|
|
|
- hhh_send_mail(email, html)
|
|
|
+ hhh_send_mail(email, html2)
|
|
|
|
|
|
print ('發送執行項目通知(無預定完成日期) (執行單位) end...')
|