同步招生就业服务队新版值班表

This commit is contained in:
2026-11-19 09:39:40 +08:00
parent 215718e597
commit 7520949b3b
13 changed files with 163 additions and 147 deletions
+2 -1
View File
@@ -1542,7 +1542,8 @@ async def remind_duty(payload: DutyRemindIn, viewer: dict = Depends(current_user
email = next(iter(recipients))
start = datetime.fromtimestamp(shift["start_at"] / 1000, BEIJING)
try:
sent = await duty_receipts.send_notice(_duty_state(), start.date().isoformat(), {payload.name: [shift["slot"]]}, email, shift["end_at"] / 1000, _send_email, "值班提醒", f"日期:{start:%Y-%m-%d},{start:%H:%M} 开始(北京时间)", _site_base_url())
duty_title = data.get("title", "值班提醒")
sent = await duty_receipts.send_notice(_duty_state(), start.date().isoformat(), {payload.name: [shift["slot"]]}, email, shift["end_at"] / 1000, _send_email, f"{duty_title}|邮件提醒", f"机构:{data.get('organization', '招生就业服务队')}\n日期:{start:%Y-%m-%d},{start:%H:%M} 开始(北京时间)", _site_base_url())
except HTTPException:
raise
if not sent: