mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 08:59:46 +08:00
fix file name
This commit is contained in:
parent
9f3c996be2
commit
1e5f6c1475
@ -746,6 +746,7 @@ class PipelineGenerator(BaseAppGenerator):
|
||||
all_files.append(
|
||||
{
|
||||
"id": datasource_info.get("id", ""),
|
||||
"name": datasource_info.get("name", "untitled"),
|
||||
"bucket": datasource_info.get("bucket", None),
|
||||
}
|
||||
)
|
||||
@ -777,7 +778,6 @@ class PipelineGenerator(BaseAppGenerator):
|
||||
provider_type=datasource_runtime.datasource_provider_type(),
|
||||
)
|
||||
is_truncated = False
|
||||
last_file_key = None
|
||||
for result in result_generator:
|
||||
for files in result.result:
|
||||
for file in files.files:
|
||||
@ -795,6 +795,7 @@ class PipelineGenerator(BaseAppGenerator):
|
||||
all_files.append(
|
||||
{
|
||||
"id": file.id,
|
||||
"name": file.name,
|
||||
"bucket": bucket,
|
||||
}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user