1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add relative file path to the progress report. (#4621)

This commit is contained in:
Robin Huang
2024-08-26 23:06:12 -07:00
committed by GitHub
parent 2ca8f6e23d
commit 70b84058c1

View File

@@ -586,7 +586,9 @@ class PromptServer():
@routes.post("/internal/models/download") @routes.post("/internal/models/download")
async def download_handler(request): async def download_handler(request):
async def report_progress(filename: str, status: DownloadModelStatus): async def report_progress(filename: str, status: DownloadModelStatus):
await self.send_json("download_progress", status.to_dict()) payload = status.to_dict()
payload['download_path'] = filename
await self.send_json("download_progress", payload)
data = await request.json() data = await request.json()
url = data.get('url') url = data.get('url')