mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Compare commits
2 Commits
40fcee7a26
...
502b44f02a
Author | SHA1 | Date | |
---|---|---|---|
|
502b44f02a | ||
|
9e80b3cb39 |
|
@ -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 _:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user