aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorEyrie <me@eyriewow.com>2022-09-25 10:29:40 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-25 14:11:07 +0000
commit40166dbf086f49b3566ac5a2003dd0a980dc29e0 (patch)
treeaee2a087c254f015efd10b0790cb2deb38c0d725 /modules/images.py
parent50ae19acf6003708390ae6696e833cf596621882 (diff)
downloadstable-diffusion-webui-gfx803-40166dbf086f49b3566ac5a2003dd0a980dc29e0.tar.gz
stable-diffusion-webui-gfx803-40166dbf086f49b3566ac5a2003dd0a980dc29e0.tar.bz2
stable-diffusion-webui-gfx803-40166dbf086f49b3566ac5a2003dd0a980dc29e0.zip
Added job_id pattern for directories
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py
index 642cde36..e85c71d5 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -295,6 +295,7 @@ def apply_filename_pattern(x, p, seed, prompt):
x = x.replace("[model_hash]", shared.sd_model.sd_model_hash)
x = x.replace("[date]", datetime.date.today().isoformat())
+ x = x.replace("[job_id]", shared.state.job_id)
if cmd_opts.hide_ui_dir_config:
x = re.sub(r'^[\\/]+|\.{2,}[\\/]+|[\\/]+\.{2,}', '', x)