mirror of https://github.com/openspug/spug
F 修复发布驳回再提交触发的webhook通知状态值不正确的问题
parent
05a93dd439
commit
64987edf50
|
@ -312,7 +312,7 @@ def post_request_ext2(request):
|
||||||
if form.id:
|
if form.id:
|
||||||
req = DeployRequest.objects.get(pk=form.id)
|
req = DeployRequest.objects.get(pk=form.id)
|
||||||
is_required_notify = deploy.is_audit and req.status == '-1'
|
is_required_notify = deploy.is_audit and req.status == '-1'
|
||||||
DeployRequest.objects.filter(pk=form.id).update(created_by=request.user, reason=None, **form)
|
req.update_by_dict(created_by=request.user, reason=None, **form)
|
||||||
else:
|
else:
|
||||||
req = DeployRequest.objects.create(created_by=request.user, **form)
|
req = DeployRequest.objects.create(created_by=request.user, **form)
|
||||||
is_required_notify = deploy.is_audit
|
is_required_notify = deploy.is_audit
|
||||||
|
|
Loading…
Reference in New Issue