Skip to content

Commit

Permalink
Update sde_collections/sinequa_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonDavis authored Nov 11, 2024
1 parent 04286f8 commit ae211ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sde_collections/sinequa_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def process_response(self, url: str, payload: dict[str, Any]) -> Any:
return meaningful_response

def query(self, page: int, collection_config_folder: str = "") -> Any:
url = f"{self.base_url}/api/v1/search.query?Password={self.password}&User={self.user}"
if self.server_name:
url = f"{self.base_url}/api/v1/search.query?Password={self.password}&User={self.user}"
else:
url = f"{self.base_url}/api/v1/search.query"
payload = {
"app": self.app_name,
"query": {
Expand Down

0 comments on commit ae211ca

Please sign in to comment.