mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-12 17:10:54 +02:00
Fix issue with empty issues
This commit is contained in:
parent
988e9aa682
commit
c903d92fcc
@ -175,18 +175,19 @@ class LinearConnector(LoadConnector, PollConnector):
|
|||||||
sections=[
|
sections=[
|
||||||
Section(
|
Section(
|
||||||
link=node["url"],
|
link=node["url"],
|
||||||
text=node["description"],
|
text=node["description"] or "",
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
+ [
|
+ [
|
||||||
Section(
|
Section(
|
||||||
link=node["url"],
|
link=node["url"],
|
||||||
text=comment["body"],
|
text=comment["body"] or "",
|
||||||
)
|
)
|
||||||
for comment in node["comments"]["nodes"]
|
for comment in node["comments"]["nodes"]
|
||||||
],
|
],
|
||||||
source=DocumentSource.LINEAR,
|
source=DocumentSource.LINEAR,
|
||||||
semantic_identifier=node["identifier"],
|
semantic_identifier=f"[{node['identifier']}] {node['title']}",
|
||||||
|
title=node["title"],
|
||||||
doc_updated_at=time_str_to_utc(node["updatedAt"]),
|
doc_updated_at=time_str_to_utc(node["updatedAt"]),
|
||||||
metadata={
|
metadata={
|
||||||
"team": node["team"]["name"],
|
"team": node["team"]["name"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user