chore: return item on upload

This commit is contained in:
bennykok 2024-10-04 15:27:31 -07:00
parent f812d9d698
commit 2f33bcf497

View File

@ -1366,6 +1366,8 @@ async def upload_file(prompt_id, filename, subfolder=None, content_type="image/p
if ok.get("is_public") is not None:
item["is_public"] = ok.get("is_public")
return item
def have_pending_upload(prompt_id):
if prompt_id in prompt_metadata and len(prompt_metadata[prompt_id].uploading_nodes) > 0:
logger.info(f"Have pending upload {len(prompt_metadata[prompt_id].uploading_nodes)}")