停止记录和补记值班缺勤,移除缺勤入口并保留历史数据
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user