mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-10 21:26:01 +02:00
Fix Github Metadata (#427)
This commit is contained in:
@@ -42,7 +42,7 @@ def _convert_pr_to_document(pull_request: PullRequest) -> Document:
|
|||||||
source=DocumentSource.GITHUB,
|
source=DocumentSource.GITHUB,
|
||||||
semantic_identifier=pull_request.title,
|
semantic_identifier=pull_request.title,
|
||||||
metadata={
|
metadata={
|
||||||
"last_modified": pull_request.last_modified,
|
"last_modified": str(pull_request.last_modified),
|
||||||
"merged": pull_request.merged,
|
"merged": pull_request.merged,
|
||||||
"state": pull_request.state,
|
"state": pull_request.state,
|
||||||
},
|
},
|
||||||
@@ -62,7 +62,7 @@ def _convert_issue_to_document(issue: Issue) -> Document:
|
|||||||
source=DocumentSource.GITHUB,
|
source=DocumentSource.GITHUB,
|
||||||
semantic_identifier=issue.title,
|
semantic_identifier=issue.title,
|
||||||
metadata={
|
metadata={
|
||||||
"last_modified": issue.updated_at,
|
"last_modified": str(issue.updated_at),
|
||||||
"state": issue.state,
|
"state": issue.state,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user