feat: 自动学习功能,后台定时发送心跳积累学时

This commit is contained in:
2026-11-15 01:01:45 +08:00
parent 2acf310e0c
commit ffa563d97c
13 changed files with 959 additions and 16 deletions
+4
View File
@@ -625,6 +625,10 @@ def test_settings_do_not_expose_process_switches() -> None:
"manual_preference",
"auto_jigsaw_attempts",
"admin_username",
"heartbeat_interval_mode",
"heartbeat_video_seconds",
"heartbeat_document_seconds",
"heartbeat_scorm_seconds",
}
assert identity.password_cipher()
assert decrypt_secret(identity.password_cipher()) == INITIAL_PASSWORD
+1
View File
@@ -110,6 +110,7 @@ def test_login_stores_password_and_credential_only() -> None:
"last_refresh_at",
"credential_valid",
"month_hours",
"monthly_target",
}
home = client.get("/api/home")