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