From a2dca888ac6a1356452f65bf42775dc7df992806 Mon Sep 17 00:00:00 2001 From: Henry He Date: Fri, 26 Apr 2024 11:02:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20f-string=20?= =?UTF-8?q?=E5=8F=8C=E5=BC=95=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media_platform/xhs/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media_platform/xhs/help.py b/media_platform/xhs/help.py index 8227def..72b269f 100644 --- a/media_platform/xhs/help.py +++ b/media_platform/xhs/help.py @@ -274,7 +274,7 @@ def get_img_urls_by_trace_id(trace_id: str, format_type: str = "png"): def get_trace_id(img_url: str): # 浏览器端上传的图片多了 /spectrum/ 这个路径 - return f"spectrum/{img_url.split("/")[-1]}" if img_url.find("spectrum") != -1 else img_url.split("/")[-1] + return f"spectrum/{img_url.split('/')[-1]}" if img_url.find("spectrum") != -1 else img_url.split("/")[-1] if __name__ == '__main__':