From ee095432272a858960fbdb4d24f5a5cbc71f4a20 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 25 Oct 2021 13:21:26 +0800 Subject: [PATCH] getParticipant bug --- hb_server/apps/wf/scripts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hb_server/apps/wf/scripts.py b/hb_server/apps/wf/scripts.py index 5e818f7..3bdb206 100644 --- a/hb_server/apps/wf/scripts.py +++ b/hb_server/apps/wf/scripts.py @@ -8,7 +8,8 @@ class GetParticipants: # # return list(filter(lambda x: x.startswith('get_') and callable(getattr(self, x)), dir(self))) # return [(func, getattr(self, func).__doc__) for func in dir(self) if callable(getattr(self, func)) and func.startswith('get_')] - def get_create_by(self, state:dict={}, ticket:dict={}, ticket_data:dict={}, request={}): + @classmethod + def get_create_by(cls, state:dict={}, ticket:dict={}, ticket_data:dict={}, request={}): """工单创建人""" participant = ticket.create_by.id return participant \ No newline at end of file