diff options
author | evshiron <evshiron@gmail.com> | 2022-10-30 05:04:29 +0800 |
---|---|---|
committer | evshiron <evshiron@gmail.com> | 2022-10-30 05:04:29 +0800 |
commit | 88f46a5bec610cf03641f18becbe3deda541e982 (patch) | |
tree | 9e8b9448f0855838bde2220ebe3b5f35c9851072 /modules/shared.py | |
parent | e9c6c2a51f972fd7cd88ea740ade4ac3d8108b67 (diff) |
update progress response model
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 4 |
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()
|