feat: 学习状态改为内存快照,页面连接每秒自取并自动重连

This commit is contained in:
2026-11-17 17:36:22 +08:00
parent 42b29fb4d6
commit 4d1a90c321
11 changed files with 675 additions and 256 deletions
+6 -8
View File
@@ -68,15 +68,13 @@ def fresh_database():
service_mod._pending.clear()
service_mod._pending_qr.clear()
service_mod._pending_busy.clear()
for handle in list(study_push._pending.values()):
handle.cancel()
study_push._pending.clear()
study_push._inflight.clear()
study_push._dirty.clear()
study_push._urgent.clear()
study_push._last_flush.clear()
study_push._clients.clear()
study_push._links.clear()
study_push._loop = None
from euniv import study_control
study_control._snaps.clear()
study_control._snap_marks.clear()
autostudy_mod.forget_courses()
with encrypt_mod._lock:
encrypt_mod._config.clear()
encrypt_mod._config.update(