Skip to content

Commit 397efc2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 48b5e63 commit 397efc2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sde_collections/sinequa_api.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def sql_query(self, sql: str) -> Any:
124124
raise Exception(f"API request failed: {str(e)}")
125125

126126
def get_full_texts(self, collection_config_folder: str) -> Any:
127-
'''
127+
"""
128128
Retrieves the full texts, URLs, and titles for a specified collection.
129-
129+
130130
Returns:
131131
dict: A JSON response containing the results of the SQL query in an expected format under the 'Rows' key,
132132
where each item has 'url1', 'text', and 'title' .
@@ -147,8 +147,7 @@ def get_full_texts(self, collection_config_folder: str) -> Any:
147147
}
148148
]
149149
}
150-
151-
'''
150+
151+
"""
152152
sql = f"SELECT url1, text, title FROM sde_index WHERE collection = '/SDE/{collection_config_folder}/'"
153153
return self.sql_query(sql)
154-

0 commit comments

Comments
 (0)