Revert "fix the error of unable to retrieve url from file" (#10511)

This commit is contained in:
crazywoola
2024-11-11 08:56:19 +08:00
committed by GitHub
parent b07ea5055b
commit 5656f81bde
3 changed files with 2 additions and 28 deletions

View File

@@ -26,7 +26,7 @@ def get_attr(*, file: File, attr: FileAttribute):
case FileAttribute.TRANSFER_METHOD:
return file.transfer_method.value
case FileAttribute.URL:
return _to_url(file)
return file.remote_url
case FileAttribute.EXTENSION:
return file.extension
case _: