mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 13:19:54 +00:00
update progress response model
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user