fix: 学习任务跨月会停,失败的课不再记成已学完
This commit is contained in:
@@ -433,6 +433,10 @@ def _refresh_one(employee_id: str, attempts: int, client_factory) -> None:
|
||||
account = db.get(Account, employee_id)
|
||||
if account is None or account.refresh_paused or not account.credential_cipher:
|
||||
return
|
||||
from euniv.autostudy import is_studying
|
||||
|
||||
if is_studying(employee_id):
|
||||
return
|
||||
if account.credential_valid is False:
|
||||
return
|
||||
client = None
|
||||
|
||||
Reference in New Issue
Block a user