diff options
author | RnDMonkey <ryandrutledge@gmail.com> | 2022-10-01 21:26:12 +0000 |
---|---|---|
committer | RnDMonkey <ryandrutledge@gmail.com> | 2022-10-01 21:26:12 +0000 |
commit | b99a4f769f11ed74df0344a23069d3858613fbef (patch) | |
tree | 1c1c3b7a89409ab96b42dbe3872f0b8f7fb3ad3c /scripts/xy_grid.py | |
parent | eba0c29dbc3bad8c4e32f1fa3a03dc6f9caf1f5a (diff) | |
download | stable-diffusion-webui-gfx803-b99a4f769f11ed74df0344a23069d3858613fbef.tar.gz stable-diffusion-webui-gfx803-b99a4f769f11ed74df0344a23069d3858613fbef.tar.bz2 stable-diffusion-webui-gfx803-b99a4f769f11ed74df0344a23069d3858613fbef.zip |
fixed expression error in condition
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index f87c6c1f..f1f54d9c 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -218,7 +218,7 @@ class Script(scripts.Script): ys = process_axis(y_opt, y_values)
def fix_axis_seeds(axis_opt, axis_list):
- if axis_opt.label == 'Seed' or 'Var. seed':
+ if axis_opt.label in ["Seed","Var. seed"]:
return [int(random.randrange(4294967294)) if val is None or val == '' or val == -1 else val for val in axis_list]
else:
return axis_list
|