Commit 03118838 authored by nextime's avatar nextime

Fix GOTOSTEP condition_act

parent 2f365266
...@@ -563,7 +563,8 @@ def getSequence(seqname): ...@@ -563,7 +563,8 @@ def getSequence(seqname):
return SequenceConf.find(where=['name=?', seqname], limit=1) return SequenceConf.find(where=['name=?', seqname], limit=1)
def setNextStep(sname, st): def setNextStep(sname, st):
querystr="UPDATE sequence_data SET step_done=1 WHERE step<"+str(st)+" AND sequence_name='"+sname+"'" #querystr="UPDATE sequence_data SET step_done=1 WHERE step<"+str(st)+" AND sequence_name='"+sname+"'"
querystr="UPDATE sequence_data SET step_done=IF(position<"+str(st)+",1,0) WHERE sequence_name='"+sname+"'"
return Registry.DBPOOL.runOperation(querystr) return Registry.DBPOOL.runOperation(querystr)
def getRunningSequences(): def getRunningSequences():
......
Markdown is supported
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