Skip to content

Commit 4de297e

Browse files
committed
1.3
1 parent e877c44 commit 4de297e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

personal_page/evaluation.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from lxml import etree
1818

1919
from login.login import login
20-
from mail import send_mail
2120

2221

2322
def access(s):
@@ -128,9 +127,10 @@ def process(user_id, user_password, email=''):
128127
message = evaluate(s)
129128
print(f"{user_id} 自动评价结果,{message}")
130129
print("---------------------------")
131-
if email:
132-
send_mail(send_tos=[email], name="SSSimon Yang", subject=f"{user_id} 自动评价结果",
133-
text=message)
130+
# from mail import send_mail
131+
# if email:
132+
# send_mail(send_tos=[email], name="SSSimon Yang", subject=f"{user_id} 自动评价结果",
133+
# text=message)
134134
return f"{user_id} success"
135135

136136

readme.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,16 @@ python main.py -id <your_user_id> -pw <your_user_password>'
5757
```
5858
mail_username = '****************' # email地址
5959
mail_password = '****************' # email开启smtp服务后提供的登录授权码
60-
host = 'smtp.***.com' # 对应的smtp服务器
60+
mail_host = 'smtp.***.com' # 对应的smtp服务器
6161
user_email = '****************' # 通知到的email地址
6262
```
63+
然后更改`evaluation`的部分
64+
```
65+
from mail import send_mail
66+
if email:
67+
send_mail(send_tos=[email], name="SSSimon Yang", subject=f"{user_id} 自动评价结果",
68+
text=message)
69+
```
6370
然后更改`main.py`的部分
6471
```
6572
if __name__ == '__main__':

0 commit comments

Comments
 (0)