Skip to content

Commit 6a891c6

Browse files
committed
update
1 parent 6e1e887 commit 6a891c6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

pyepsilla/cloud/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def insert(self, table_name: str, records: list[dict]):
9696
body = res.json()
9797
return status_code, body
9898

99+
99100
## query data from table
100101
def query(self, table_name: str, query_field: str = None, query_vector: list = None, response_fields: Optional[list] = None, limit: int = 2, filter: Optional[str] = None, with_distance: Optional[bool] = False):
101102
req_url = "{}/data/query".format(self._baseurl)
@@ -160,19 +161,14 @@ def get(self, table_name: str, response_fields: Optional[list] = None, primary_k
160161
primary_keys = ids
161162

162163
req_data = {"table": table_name}
163-
164164
if response_fields != None:
165165
req_data["response"] = response_fields
166-
167166
if primary_keys != None:
168167
req_data["primaryKeys"] = primary_keys
169-
170168
if filter != None:
171169
req_data["filter"] = filter
172-
173170
if skip != None:
174171
req_data["skip"] = skip
175-
176172
if limit != None:
177173
req_data["limit"] = limit
178174

0 commit comments

Comments
 (0)