aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 0f4c035d..f7b0990c 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -147,7 +147,7 @@ class State:
def get_job_timestamp(self):
return datetime.datetime.now().strftime("%Y%m%d%H%M%S") # shouldn't this return job_timestamp?
- def js(self):
+ def dict(self):
obj = {
"skipped": self.skipped,
"interrupted": self.skipped,
@@ -158,7 +158,7 @@ class State:
"sampling_steps": self.sampling_steps,
}
- return json.dumps(obj)
+ return obj
state = State()