aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorDepFA <35278260+dfaker@users.noreply.github.com>2022-09-27 01:26:13 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-27 05:51:59 +0000
commit16e7ac09df1cef85781494a1234a7aa3c51fb4a9 (patch)
treee04dfd3e4de1a1312af1de6cc88560060aacd53c /modules/shared.py
parent78d6aef30249530d8cc0b5023b2f8bf8c86f8446 (diff)
downloadstable-diffusion-webui-gfx803-16e7ac09df1cef85781494a1234a7aa3c51fb4a9.tar.gz
stable-diffusion-webui-gfx803-16e7ac09df1cef85781494a1234a7aa3c51fb4a9.tar.bz2
stable-diffusion-webui-gfx803-16e7ac09df1cef85781494a1234a7aa3c51fb4a9.zip
job_timestamp initialization change
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index c32da110..bd030fe8 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -66,7 +66,7 @@ class State:
job = ""
job_no = 0
job_count = 0
- job_timestamp = 0
+ job_timestamp = '0'
sampling_step = 0
sampling_steps = 0
current_latent = None
@@ -80,6 +80,7 @@ class State:
self.job_no += 1
self.sampling_step = 0
self.current_image_sampling_step = 0
+
def get_job_timestamp(self):
return datetime.datetime.now().strftime("%Y%m%d%H%M%S")