From 586fdfb21970f2f0efd45916b832d4b01f7ca3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 31 Aug 2022 09:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=BF=87=E6=9C=9F=E5=A4=84?= =?UTF-8?q?=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ecm/tasks.py | 2 +- apps/wf/services.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ecm/tasks.py b/apps/ecm/tasks.py index 6ee6c450..2ded1b86 100644 --- a/apps/ecm/tasks.py +++ b/apps/ecm/tasks.py @@ -70,7 +70,7 @@ def check_event_timeout(): """ for i in Event.objects.filter(handle_user=None, is_timeout=False): cate = i.cates.all().order_by('priority', 'create_time').first() - if cate.hanle_minute > 0 and (timezone.now()-i.create_time).seconds > cate.hanle_minute * 60: + if cate.handle_minute > 0 and (timezone.now()-i.create_time).seconds > cate.handle_minute * 60: i.is_timeout = True i.save() diff --git a/apps/wf/services.py b/apps/wf/services.py index 4f5b0f80..1b226c6e 100755 --- a/apps/wf/services.py +++ b/apps/wf/services.py @@ -150,6 +150,7 @@ class WfService(object): multi_all_person={}) multi_all_person_dict = {} destination_participant_type, destination_participant = state.participant_type, state.participant + print(state.name, destination_participant_type, destination_participant) if destination_participant_type == State.PARTICIPANT_TYPE_FIELD: destination_participant = new_ticket_data.get(destination_participant, 0) if destination_participant \ in new_ticket_data else Ticket.ticket_data.get(destination_participant, 0)