mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-06 18:14:35 +02:00
Fix formatting
This commit is contained in:
@@ -77,8 +77,11 @@ def _get_comment_strs(
|
|||||||
comment_strs = []
|
comment_strs = []
|
||||||
for comment in jira.fields.comment.comments:
|
for comment in jira.fields.comment.comments:
|
||||||
try:
|
try:
|
||||||
body_text = (comment.body if JIRA_API_VERSION == "2"
|
body_text = (
|
||||||
else extract_text_from_adf(comment.raw["body"]))
|
comment.body
|
||||||
|
if JIRA_API_VERSION == "2"
|
||||||
|
else extract_text_from_adf(comment.raw["body"])
|
||||||
|
)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
hasattr(comment, "author")
|
hasattr(comment, "author")
|
||||||
@@ -125,8 +128,11 @@ def fetch_jira_issues_batch(
|
|||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
description = (jira.fields.description if JIRA_API_VERSION == "2"
|
description = (
|
||||||
else extract_text_from_adf(jira.raw["fields"]["description"]))
|
jira.fields.description
|
||||||
|
if JIRA_API_VERSION == "2"
|
||||||
|
else extract_text_from_adf(jira.raw["fields"]["description"])
|
||||||
|
)
|
||||||
comments = _get_comment_strs(jira, comment_email_blacklist)
|
comments = _get_comment_strs(jira, comment_email_blacklist)
|
||||||
semantic_rep = f"{description}\n" + "\n".join(
|
semantic_rep = f"{description}\n" + "\n".join(
|
||||||
[f"Comment: {comment}" for comment in comments if comment]
|
[f"Comment: {comment}" for comment in comments if comment]
|
||||||
|
Reference in New Issue
Block a user