simplify expression in prompts from file script

This commit is contained in:
AUTOMATIC 2023-01-14 16:45:39 +03:00
parent 27c1b3b816
commit 69781031e7

View File

@ -146,11 +146,7 @@ class Script(scripts.Script):
else: else:
args = {"prompt": line} args = {"prompt": line}
n_iter = args.get("n_iter", p.n_iter) job_count += args.get("n_iter", p.n_iter)
if n_iter != 1:
job_count += n_iter
else:
job_count += 1
jobs.append(args) jobs.append(args)