Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bankroft committed May 31, 2019
1 parent e33e963 commit ac68c99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ url_query_token = http://123.207.19.72/api/token-query
[User]
wechat_mp =
noanswer_sleep = 1
internet_line =
internet_line = 公网1
token =
rk_username =
rk_password =
Expand Down
3 changes: 3 additions & 0 deletions console_erya/automaticcompletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def run(self):
if now_lesson.strip() == '阅读':
print_info(['出错', '阅读页面', '请手动完成'], 'error', timz=True, all_output=True)
return False, False
else:
print_info(['警报', '该章节可能无章节测验', '跳过'], 'warning', True, all_output=True)
return False, False
# time.sleep(10)
except common.exceptions.NoSuchElementException:
break
Expand Down
4 changes: 2 additions & 2 deletions console_erya/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ConsoleConfig:
'--slient',
'--disable-logging',
'--mute-audio',
'--headless',
'--headless',
'--disable-gpu',
'--window-size=1920,1080',
]
Expand Down Expand Up @@ -160,7 +160,7 @@ class AutomaticcompletionConfig:
# '//div[@class="ncells"]/a//span[@class="roundpoint orange01"]/../..',
# '//div[@class="ncells"]/a//span[@class="roundpointStudent"]/../..',
# ]
'string': '//div[@class="ncells"]//span[@class="roundpointStudent orange01 a002" or @class="roundpoint orange01" or @class="roundpointStudent" or @class="roundpointStudent orange01 a002 jobCount"]/../..'
'string': '//div[@class="ncells"]//span[@class="roundpointStudent orange01 a002" or @class="roundpoint orange01" or @class="roundpointStudent" or @class="roundpointStudent orange01 a002 jobCount"]/../a'
}

# 课程名称
Expand Down

0 comments on commit ac68c99

Please sign in to comment.