修改rpj_audit_end

This commit is contained in:
曹前明 2022-07-15 14:02:06 +08:00
parent 2a57b77425
commit b0949549ca
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ def rpj_audit_end(ticket):
ct.save() ct.save()
# 更新相关方资料库 # 更新相关方资料库
for i in Rpjfile.objects.filter(rpj=rpj): for i in Rpjfile.objects.filter(rpj=rpj):
rf = Rfile.objects.filter(file_cate=i.file_cate, rparty=i.rparty).first() rf = Rfile.objects.filter(file_cate=i.file_cate, rparty=i.rpj.rparty).first()
if rf: if rf:
pass pass
else: else:

View File

@ -442,7 +442,7 @@ class TicketViewSet(CreateUpdateCustomMixin, CreateModelMixin, ListModelMixin, R
if not ticket.script_run_last_result: if not ticket.script_run_last_result:
ticket.script_run_last_result = True ticket.script_run_last_result = True
ticket.save() ticket.save()
run_task(ticket.id) run_task.delay(ticket.id)
return Response() return Response()