diff options
author | Milly <milly.ca@gmail.com> | 2022-10-04 17:17:15 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-06 17:41:23 +0000 |
commit | 1cc36d170ac15e7f04208df32db27af1b10c867c (patch) | |
tree | f4bf661655e9b1554ac4e7a632640cb343211a4b /modules/processing.py | |
parent | 070b7d60cf5dac6387b3bfc8f3b3977b620e4fd5 (diff) | |
download | stable-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.py | 2 |
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)
|