From b441253db9064e7aef7038962a126b225b9ae0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 18 Dec 2025 12:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/models/yuthon_will_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_will_task/models/yuthon_will_task.py b/yuthon_will_task/models/yuthon_will_task.py index 7f08c319f..052c8538a 100644 --- a/yuthon_will_task/models/yuthon_will_task.py +++ b/yuthon_will_task/models/yuthon_will_task.py @@ -210,8 +210,8 @@ class YuthonWillTask(models.Model): reminder_truncated = task.reminder_time.replace(second=0, microsecond=0) if reminder_truncated == now_truncated: task.task_state = 'done' - for task_time in task.employee_ids: - employee_list.append(task_time.employee_id) + for employee_id in task.employee_ids: + employee_list.append(employee_id) for employee_id in employee_list: if not employee_id.wecom_userid: raise UserError("请同步{}的企业微信".format(employee_id.name))