feat: 增加公告栏并让用户自选学时判断

This commit is contained in:
Nixevol
2026-11-19 04:08:30 +08:00
parent 3fe6d4c111
commit 4d4fe224bc
20 changed files with 789 additions and 64 deletions
+3
View File
@@ -56,11 +56,14 @@ def _stored(value: object, default: int, high: int) -> int:
def view_of(account) -> dict:
from admin.settings import account_hours_source
return {
"heartbeat_mode": mode_of(account),
"heartbeat_video_seconds": video_of(account),
"heartbeat_document_seconds": document_of(account),
"heartbeat_scorm_seconds": scorm_of(account),
"hours_source": account_hours_source(account),
}