diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-04 12:26:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 12:26:48 +0000 |
commit | e6cbef785ab45942d0ace7f91b039c0a0d640a4a (patch) | |
tree | beb064c25b6f4a3456b0ec142546644cff40c32a /modules/images.py | |
parent | eec1b39bd54711ca31e43022d2d6ac8c6d7281da (diff) | |
parent | 80c418c0d3f81c64ae8e620f020998d8b1c4c3d7 (diff) | |
download | stable-diffusion-webui-gfx803-e6cbef785ab45942d0ace7f91b039c0a0d640a4a.tar.gz stable-diffusion-webui-gfx803-e6cbef785ab45942d0ace7f91b039c0a0d640a4a.tar.bz2 stable-diffusion-webui-gfx803-e6cbef785ab45942d0ace7f91b039c0a0d640a4a.zip |
Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_pattern
#1484 fix empty styles pattern
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index 5b56c7e3..c2fadab9 100644 --- a/modules/images.py +++ b/modules/images.py @@ -296,7 +296,7 @@ def apply_filename_pattern(x, p, seed, prompt): #currently disabled if using the save button, will work otherwise
# if enabled it will cause a bug because styles is not included in the save_files data dictionary
if hasattr(p, "styles"):
- x = x.replace("[styles]", sanitize_filename_part(", ".join([x for x in p.styles if not x == "None"] or "None"), replace_spaces=False))
+ x = x.replace("[styles]", sanitize_filename_part(", ".join([x for x in p.styles if not x == "None"]) or "None", replace_spaces=False))
x = x.replace("[sampler]", sanitize_filename_part(sd_samplers.samplers[p.sampler_index].name, replace_spaces=False))
|