mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-16 14:10:52 -08:00
update progress response model
This commit is contained in:
parent
e9c6c2a51f
commit
88f46a5bec
3 changed files with 7 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue