aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorMilly <milly.ca@gmail.com>2022-10-04 17:17:15 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-06 17:41:23 +0000
commit1cc36d170ac15e7f04208df32db27af1b10c867c (patch)
treef4bf661655e9b1554ac4e7a632640cb343211a4b /modules/processing.py
parent070b7d60cf5dac6387b3bfc8f3b3977b620e4fd5 (diff)
downloadstable-diffusion-webui-gfx803-1cc36d170ac15e7f04208df32db27af1b10c867c.tar.gz
stable-diffusion-webui-gfx803-1cc36d170ac15e7f04208df32db27af1b10c867c.tar.bz2
stable-diffusion-webui-gfx803-1cc36d170ac15e7f04208df32db27af1b10c867c.zip
Added job_timestamp to Processed
So `[job_timestamp]` pattern can use in saving image UI.
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 706dbfa8..f773a30e 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -122,6 +122,7 @@ class Processed:
self.extra_generation_params = p.extra_generation_params
self.index_of_first_image = index_of_first_image
self.styles = p.styles
+ self.job_timestamp = state.job_timestamp
self.eta = p.eta
self.ddim_discretize = p.ddim_discretize
@@ -167,6 +168,7 @@ class Processed:
"index_of_first_image": self.index_of_first_image,
"infotexts": self.infotexts,
"styles": self.styles,
+ "job_timestamp": self.job_timestamp,
}
return json.dumps(obj)