Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[优化方案]避免重复刷同一课程视频,支持多实例同时刷不同课程视频的优化方案 #383

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

cxfjh
Copy link
Contributor

@cxfjh cxfjh commented Nov 12, 2024

main.py Outdated
@@ -129,6 +153,11 @@ def add_times(self,id:str) -> None:
for job in jobs:
# 视频任务
if job["type"] == "video":

TextBookID = getText() # 获取学习过的课程ID
if TextBookID.count(bookID) > 0: break # 如果已经学习过该课程,则跳过
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢帮助。可以在这句后面加个控制台输出,方便用户DEBUG

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

输出跳过课程的情况,并解释跳过原因

Copy link
Owner

@Samueli924 Samueli924 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢帮助,已合并PR

@Samueli924 Samueli924 merged commit 7742460 into Samueli924:main Nov 12, 2024
1 check was pending
@Samueli924 Samueli924 mentioned this pull request Nov 20, 2024
n-WN pushed a commit to n-WN/chaoxing_fork that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants