Script execution
This commit is contained in:
@@ -2,15 +2,14 @@
|
||||
|
||||
def get_scan_index():
|
||||
try:
|
||||
return int(get_setting("ScanIndex")
|
||||
return int(get_setting("ScanIndex"))
|
||||
except:
|
||||
return 1
|
||||
|
||||
def processScanPars_decorator(func):
|
||||
def wrapper(scan, pars):
|
||||
global SCAN_INDEX
|
||||
if 'name' not in pars:
|
||||
index = get_scan_index():
|
||||
index = get_scan_index()
|
||||
set_exec_pars(name=str(index))
|
||||
set_setting("ScanIndex", index+1)
|
||||
func(scan, pars)
|
||||
|
||||
Reference in New Issue
Block a user