Skip to content

Commit 6bce3c4

Browse files
ds-filipknefelFilip Knefel
andauthored
fix: set correct display_name in HtmlMixin produced FileData (#559)
Fix `display_name` metadata field for `FileData` produced by `HtmlMixin` to match the created file's name rather than its parent's. --------- Co-authored-by: Filip Knefel <[email protected]>
1 parent d9bcf35 commit 6bce3c4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.56
2+
3+
- **Fix: set correct display_name in HtmlMixin produced FileData**
4+
15
## 1.0.55
26

37
* **Fix: add precheck method to SharePoint connector**

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.55" # pragma: no cover
1+
__version__ = "1.0.56" # pragma: no cover

unstructured_ingest/utils/html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def get_download_response(
129129
)
130130
result_file_data = file_data.model_copy(deep=True)
131131
result_file_data.metadata.url = url
132+
result_file_data.display_name = filename
132133
if result_file_data.metadata.record_locator is None:
133134
result_file_data.metadata.record_locator = {}
134135
result_file_data.metadata.record_locator["parent_url"] = url

0 commit comments

Comments
 (0)