修复值班邮件跨站确认,独立记录未确认缺勤并与活动统计隔离

This commit is contained in:
2026-11-06 16:30:25 +08:00
parent b32ef79384
commit 7584f5232e
9 changed files with 192 additions and 11 deletions
+2
View File
@@ -201,6 +201,8 @@ async def reminder_loop(schedule_path, state_path, get_accounts, send_email, ove
while True:
try:
schedule = load_schedule(schedule_path)
from .duty_receipts import sync_absences
await asyncio.to_thread(sync_absences, state_path, schedule, datetime.now(BEIJING))
if schedule["enabled"]:
overrides = json.loads(Path(overrides_path).read_text(encoding="utf-8-sig")) if overrides_path and Path(overrides_path).exists() else {}
result = await send_due(schedule, datetime.now(BEIJING), await get_accounts(), send_email, state_path, overrides, base_url)