File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
backend/danswer/connectors/confluence Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,13 @@ def __init__(
91
91
cql_page_query += f" and id='{ page_id } '"
92
92
93
93
self .cql_page_query = cql_page_query
94
- self .cql_label_filter = ""
95
94
self .cql_time_filter = ""
95
+
96
+ self .cql_label_filter = ""
96
97
if labels_to_skip :
97
98
labels_to_skip = list (set (labels_to_skip ))
98
- comma_separated_labels = "," .join (labels_to_skip )
99
- self .cql_label_filter = f"& label not in ({ comma_separated_labels } )"
99
+ comma_separated_labels = "," .join (f"' { label } '" for label in labels_to_skip )
100
+ self .cql_label_filter = f" and label not in ({ comma_separated_labels } )"
100
101
101
102
def load_credentials (self , credentials : dict [str , Any ]) -> dict [str , Any ] | None :
102
103
# see https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/rest_client.py
@@ -125,7 +126,8 @@ def _get_comment_string_for_page_id(self, page_id: str) -> str:
125
126
for comment in comments :
126
127
comment_string += "\n Comment:\n "
127
128
comment_string += extract_text_from_confluence_html (
128
- confluence_client = self .confluence_client , confluence_object = comment
129
+ confluence_client = self .confluence_client ,
130
+ confluence_object = comment ,
129
131
)
130
132
131
133
return comment_string
You can’t perform that action at this time.
0 commit comments