Skip to content

Commit

Permalink
fix: 修复主程序中的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sz134055 committed Oct 18, 2024
2 parents 65ff1cb + b8470b3 commit d64adb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def init_config():
jobs, job_info = chaoxing.get_job_list(course["clazzId"], course["courseId"], course["cpi"], point["id"])

# 发现未开放章节,回滚上一个任务重新完成一次
if job_info['notOpen']:
if job_info.get('notOpen',False):
__point_index -= 1 # 默认第一个任务总是开放的
continue

Expand Down Expand Up @@ -119,6 +119,7 @@ def init_config():
elif job["type"] == "workid":
logger.trace(f"识别到章节检测任务, 任务章节: {course['title']}")
chaoxing.study_work(course, job,job_info)
__point_index += 1
logger.info("所有课程学习任务已完成")
except BaseException as e:
import traceback
Expand Down

0 comments on commit d64adb0

Please sign in to comment.