fix: 切换学时依据后立刻刷新,历史页不再拉整页首页
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user