Просмотр исходного кода

fix the error of unable to retrieve url from file (#13603)

tags/1.7.2
Hasta 3 месяцев назад
Родитель
Сommit
688d07e9c3
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      api/core/file/file_manager.py

+ 1
- 1
api/core/file/file_manager.py Просмотреть файл

@@ -32,7 +32,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 FileAttribute.RELATED_ID:

Загрузка…
Отмена
Сохранить