mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
Fix history retrieval bug when accessing a distributed frontend
This commit is contained in:
parent
c6f4301e88
commit
1f705ba9d9
@ -17,8 +17,10 @@ class History:
|
||||
outputs=outputs,
|
||||
status=ExecutionStatus(*status)._asdict())
|
||||
|
||||
def copy(self, prompt_id: Optional[str | int] = None, max_items: int = MAXIMUM_HISTORY_SIZE,
|
||||
offset: int = 0) -> Dict[str, HistoryEntry]:
|
||||
def copy(self, prompt_id: Optional[str | int] = None, max_items: Optional[int] = None,
|
||||
offset: Optional[int] = None) -> Dict[str, HistoryEntry]:
|
||||
offset = offset or 0
|
||||
max_items = max_items or MAXIMUM_HISTORY_SIZE
|
||||
if prompt_id in self.history:
|
||||
return {prompt_id: copy.deepcopy(self.history[prompt_id])}
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user