From c4c64a5f045b719743acb00aee58866c143d8951 Mon Sep 17 00:00:00 2001 From: BennyKok Date: Fri, 12 Jan 2024 20:30:45 +0800 Subject: [PATCH] fix: log out the status --- custom_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_routes.py b/custom_routes.py index d6d8c96..a6d66c2 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -249,6 +249,7 @@ def update_run(prompt_id, status: Status): "status": status.value, } prompt_metadata[prompt_id]['status'] = status + print(f"Status: {status.value}") try: requests.post(status_endpoint, json=body) @@ -371,7 +372,6 @@ async def update_file_status(prompt_id, data, uploading, have_error=False, node_ if uploading: if prompt_metadata[prompt_id]['status'] != Status.UPLOADING: update_run(prompt_id, Status.UPLOADING) - print("Status: UPLOADING") await send("uploading", { "prompt_id": prompt_id, })