fix: 学习任务跨月会停,失败的课不再记成已学完

This commit is contained in:
2026-11-16 09:19:30 +08:00
parent 91b06cde25
commit 337d842543
6 changed files with 348 additions and 133 deletions
+4
View File
@@ -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