[update] count +1 when start

This commit is contained in:
Roy
2022-10-04 13:53:30 +08:00
parent d1fe388c27
commit 1f01fd3b9b
+2 -3
View File
@@ -221,11 +221,10 @@ class Project(threading.Thread):
else:
task_info['file_name'] += '#' + str(cycle_info['name']) + '-' + str(cycle_info['count'])
self.log_verbose('file name ' + task_info['file_name'])
if action.type == 'start':
self._count += 1
if instruction_set != None and len(task.parameter_set) > 0:
if action.type == 'start':
self._count += 1
for instruction in instruction_set:
args = list(map(lambda arg: task_info[arg], instruction['arguments']))
target=getattr(device, instruction['method'])(*args)