Browse Source

fix file name

tags/2.0.0-beta.1
jyong 2 months ago
parent
commit
1e5f6c1475
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      api/core/app/apps/pipeline/pipeline_generator.py

+ 2
- 1
api/core/app/apps/pipeline/pipeline_generator.py View File

all_files.append( all_files.append(
{ {
"id": datasource_info.get("id", ""), "id": datasource_info.get("id", ""),
"name": datasource_info.get("name", "untitled"),
"bucket": datasource_info.get("bucket", None), "bucket": datasource_info.get("bucket", None),
} }
) )
provider_type=datasource_runtime.datasource_provider_type(), provider_type=datasource_runtime.datasource_provider_type(),
) )
is_truncated = False is_truncated = False
last_file_key = None
for result in result_generator: for result in result_generator:
for files in result.result: for files in result.result:
for file in files.files: for file in files.files:
all_files.append( all_files.append(
{ {
"id": file.id, "id": file.id,
"name": file.name,
"bucket": bucket, "bucket": bucket,
} }
) )

Loading…
Cancel
Save