aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorLiam <liamthekerr@gmail.com>2022-09-27 20:37:24 +0000
committerLiam <liamthekerr@gmail.com>2022-09-27 20:37:24 +0000
commit981fe9c4a3994bb42ea5ff5212e4fe53b748bdd9 (patch)
tree80fd53962ccafeb773b2d43b178e1ee39ac03ca3 /modules/images.py
parent5034f7d7597685aaa4779296983be0f49f4f991f (diff)
parentf2a4a2c3a672e22f088a7455d6039557370dd3f2 (diff)
downloadstable-diffusion-webui-gfx803-981fe9c4a3994bb42ea5ff5212e4fe53b748bdd9.tar.gz
stable-diffusion-webui-gfx803-981fe9c4a3994bb42ea5ff5212e4fe53b748bdd9.tar.bz2
stable-diffusion-webui-gfx803-981fe9c4a3994bb42ea5ff5212e4fe53b748bdd9.zip
Merge remote-tracking branch 'upstream/master' into token_count
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 ae0e6304..9458bf8d 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("[datetime]", datetime.datetime.now().strftime("%Y%m%d%H%M%S"))
x = x.replace("[job_timestamp]", shared.state.job_timestamp)
if cmd_opts.hide_ui_dir_config: