fix: 切换学时依据后立刻刷新,历史页不再拉整页首页

This commit is contained in:
2026-11-16 15:25:16 +08:00
parent 05f2396e35
commit 33640f7da8
4 changed files with 62 additions and 6 deletions
+4 -1
View File
@@ -695,7 +695,10 @@ class HoursWatcher:
self.user_stop.set()
return True
try:
if self.source == "history":
from admin.settings import hours_source_of
source = hours_source_of()
if source == "history":
current = int(await self.session.month_history_minutes())
text = str(current)
else: