停止记录和补记值班缺勤,移除缺勤入口并保留历史数据

This commit is contained in:
2026-11-08 11:41:29 +08:00
parent 6377a42a8f
commit 0663b44cdc
10 changed files with 50 additions and 115 deletions
-2
View File
@@ -201,8 +201,6 @@ 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)