Commit f78a20a6 authored by Lynn Foster's avatar Lynn Foster
Browse files

fix is_started

parent af7ee1d8
......@@ -114,7 +114,6 @@ class UpdateProcess(AuthedMutation):
is_finished = args.get('is_finished')
is_started = args.get('is_started')
plan_id = args.get('plan_id')
process = ProcessProxy.objects.get(pk=id)
if process:
if name:
......@@ -135,8 +134,9 @@ class UpdateProcess(AuthedMutation):
process.plan=plan
if is_finished != None:
process.finished=is_finished
if is_started == True:
process.started=datetime.date.today()
if is_started != None:
if is_started == True:
process.started=datetime.date.today()
process.changed_by=context.user
user_agent = AgentUser.objects.get(user=context.user).agent
......
......@@ -7321,10 +7321,10 @@ class Process(models.Model):
 
@property #ValueFlows
def is_started(self):
if self.started is not null:
return true
if self.started is not None:
return True
else:
return false
return False
 
@property #ValueFlows
def note(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment