From 9e80b3cb39fef856bbc4b761ee5a29a054c5c09e Mon Sep 17 00:00:00 2001 From: Xiao Ley Date: Mon, 11 Nov 2024 09:46:52 +0800 Subject: [PATCH] fix the error of unable to retrieve url from file --- api/core/file/file_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/file/file_manager.py b/api/core/file/file_manager.py index eb260a8f84..389659c292 100644 --- a/api/core/file/file_manager.py +++ b/api/core/file/file_manager.py @@ -26,7 +26,7 @@ def get_attr(*, file: File, attr: FileAttribute): case FileAttribute.TRANSFER_METHOD: return file.transfer_method.value case FileAttribute.URL: - return file.remote_url + return _to_url(file) case FileAttribute.EXTENSION: return file.extension case _: