From 30b69a58f5b8b508512e9a78a8a664b6b8b4edb8 Mon Sep 17 00:00:00 2001 From: liuchunpeng Date: Sun, 24 Nov 2019 12:22:42 +0800 Subject: [PATCH] add some tips --- evaluation.py | 1 + lesson.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/evaluation.py b/evaluation.py index c4242b1..e8ed432 100644 --- a/evaluation.py +++ b/evaluation.py @@ -64,6 +64,7 @@ def get_unfinished_lessons(self): lesson_info["id"]["questionnaireCoding"], lesson_info["questionnaire"]["questionnaireName"], lesson_info["id"]["evaluationContentNumber"], + lesson_info["evaluationContent"], self.error) lessons.append(lesson_data) return lessons diff --git a/lesson.py b/lesson.py index 0b83b06..f1d1b16 100644 --- a/lesson.py +++ b/lesson.py @@ -15,6 +15,7 @@ def __init__(self, questionnaireCode, questionnaireName, evaluationContentNumber, + evaluationContent, error): self.session = session self.evaluatedPeopleNumber = evaluatedPeopleNumber @@ -22,6 +23,7 @@ def __init__(self, self.evaluationContentNumber = evaluationContentNumber self.questionnaireName = questionnaireName self.evaluatedPeople = evaluatedPeople + self.evaluationContent = evaluationContent self.error = error '''单门课程进行评教''' @@ -33,6 +35,7 @@ def evaluate(self): "questionnaireName": self.questionnaireName, "evaluatedPeople": self.evaluatedPeople, "evaluationContentContent": ""} + self.error.set("正在评价" + self.evaluationContent) url = "https://urp.shou.edu.cn/student/teachingEvaluation/teachingEvaluation/evaluationPage" try: html = self.session.post(url=url, data=data, timeout=5)