diff --git a/lib/__pycache__/db.cpython-37.pyc b/lib/__pycache__/db.cpython-37.pyc deleted file mode 100644 index 9b5319b..0000000 Binary files a/lib/__pycache__/db.cpython-37.pyc and /dev/null differ diff --git a/lib/__pycache__/photoUpload.cpython-37.pyc b/lib/__pycache__/photoUpload.cpython-37.pyc deleted file mode 100644 index d30183c..0000000 Binary files a/lib/__pycache__/photoUpload.cpython-37.pyc and /dev/null differ diff --git a/lib/crawler.py b/lib/crawler.py index ac4058f..fc7000a 100644 --- a/lib/crawler.py +++ b/lib/crawler.py @@ -86,7 +86,7 @@ def getGrade(Ip, S): #如果和上一个课程重名 if item['LessonInfo']['KCMC'] == last_lesson_name: #判断是否通过 - if item['YXCJ'] && item['YXCJ'] >= 60: + if item['YXCJ'] >= 60: #如果通过贡献1通过 last_lesson_kill += 1 #贡献总学分绩点 @@ -122,7 +122,7 @@ def getGrade(Ip, S): last_term_kill, last_term_dead, last_term_credit = 0, 0, item['XF'] last_term_grade_list = [] #如果通过 - if item['YXCJ'] && item['YXCJ'] >= 60: + if item['YXCJ'] >= 60: #贡献总学分绩点 last_term_c_x_g = item['XF'] * (item['YXCJ'] - 50) / 10 #贡献通过次数 @@ -133,7 +133,7 @@ def getGrade(Ip, S): #贡献总学分 last_term_credit += item['XF'] #如果通过 - if item['YXCJ'] && item['YXCJ'] >= 60: + if item['YXCJ'] >= 60: #贡献通过数 last_lesson_kill += 1 #贡献学分绩点 @@ -143,7 +143,7 @@ def getGrade(Ip, S): 'title': item['LessonInfo']['KCMC'], 'credit': item['XF'], 'grade': item['ShowYXCJ'], - 'kill': 'yes' if (item['YXCJ'] && item['YXCJ'] >= 60) else 'no', + 'kill': 'yes' if (item['YXCJ'] >= 60) else 'no', 'class': item['KSXZ'] }) #补充最后一次遍历的数据