mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-07 12:52:33 +00:00
Added job_timestamp to Processed
So `[job_timestamp]` pattern can use in saving image UI.
This commit is contained in:
@@ -298,7 +298,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)
|
||||
x = x.replace("[job_timestamp]", getattr(p, "job_timestamp", shared.state.job_timestamp))
|
||||
|
||||
# Apply [prompt] at last. Because it may contain any replacement word.^M
|
||||
if prompt is not None:
|
||||
|
Reference in New Issue
Block a user