Skip to content

Commit 93ac857

Browse files
committed
fixed missing raw_html field for eximport
1 parent a2cade0 commit 93ac857

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

backend/src/modules/eximport/sdocs/export_sdocs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def __export_sdocs(
145145
metadata=metadata_list,
146146
content=sdoc_data.content,
147147
html=sdoc_data.html,
148+
raw_html=sdoc_data.raw_html,
148149
token_starts=sdoc_data.token_starts,
149150
token_ends=sdoc_data.token_ends,
150151
sentence_starts=sdoc_data.sentence_starts,

backend/src/modules/eximport/sdocs/import_sdocs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ def import_sdocs_to_proj(
241241
repo_url=relative_url,
242242
content=sdoc_export.content if sdoc_export.content else "",
243243
html=sdoc_export.html,
244+
raw_html=sdoc_export.raw_html,
244245
token_starts=sdoc_export.token_starts,
245246
token_ends=sdoc_export.token_ends,
246247
sentence_starts=sdoc_export.sentence_starts,

backend/src/modules/eximport/sdocs/sdoc_export_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class SourceDocumentExportSchema(BaseModel):
3636
# Processed data of the source document
3737
content: str | None = Field(description="Content of the source document")
3838
html: str = Field(description="HTML representation of the source document")
39+
raw_html: str = Field(description="Raw HTML representation of the source document")
3940
token_starts: list[int] = Field(
4041
description="List of start positions of tokens in the source document"
4142
)

0 commit comments

Comments
 (0)