mirror of https://github.com/openspug/spug
A api fix bug
parent
b28c24e734
commit
86ede36795
|
@ -32,6 +32,8 @@ class Schedule(View):
|
||||||
updated_by=request.user,
|
updated_by=request.user,
|
||||||
**form
|
**form
|
||||||
)
|
)
|
||||||
|
task = Task.objects.filter(pk=form.id).first()
|
||||||
|
if task and task.is_active:
|
||||||
form.action = 'modify'
|
form.action = 'modify'
|
||||||
form.targets = json.loads(form.targets)
|
form.targets = json.loads(form.targets)
|
||||||
rds_cli = get_redis_connection()
|
rds_cli = get_redis_connection()
|
||||||
|
|
Loading…
Reference in New Issue