From 0e5eeef30956e5083da340463568ad535c26651b Mon Sep 17 00:00:00 2001 From: BennyKok Date: Sun, 7 Jan 2024 23:35:55 +0800 Subject: [PATCH] fix: url parsing --- builder/modal-builder/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/modal-builder/src/main.py b/builder/modal-builder/src/main.py index f65f6ea..7520ebb 100644 --- a/builder/modal-builder/src/main.py +++ b/builder/modal-builder/src/main.py @@ -310,13 +310,13 @@ async def build_logic(item: Item): "timestamp": time.time() }})) - if "Created comfyui_api =>" in l or ((l.startswith("https://") or l.startswith("│ https://")) and l.endswith(".modal.run")): + if "Created comfyui_api =>" in l or ((l.startswith("https://") or l.startswith("│")) and l.endswith(".modal.run")): if "Created comfyui_api =>" in l: url = l.split("=>")[1].strip() # making sure it is a url elif "comfyui-api" in l: # Some case it only prints the url on a blank line - if l.startswith("│ https://"): + if l.startswith("│"): url = l.split("│")[1].strip() else: url = l