Skip to content

Commit

Permalink
fix:针对一种新的满屏是阅读资料但是无type的任务点,暂时采取跳过策略
Browse files Browse the repository at this point in the history
  • Loading branch information
sz134055 authored and Samueli924 committed Oct 21, 2024
1 parent 6b9e2ae commit 3f77005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def decode_course_card(_text: str):
continue
# 不属于任务点的任务
if "job" not in _card or _card["job"] is False:
if _card['type'] == "read":
# 发现有在视频任务下掺杂阅读任务,不完成可能会导致无法开启下一章节
if _card.get('type') and _card['type'] == "read":
# 发现有在视频任务下掺杂阅读任务,不完成可能会导致无法开启下一章节
if _card['property'].get('read',False):
# 已阅读,跳过
continue
Expand Down

0 comments on commit 3f77005

Please sign in to comment.