Compare commits

...

2 Commits

Author SHA1 Message Date
Xiao Ley
502b44f02a
Merge 9e80b3cb39 into 4b2abf8ac2 2024-11-15 10:39:12 +08:00
Xiao Ley
9e80b3cb39 fix the error of unable to retrieve url from file 2024-11-11 09:46:52 +08:00

View File

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