Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsian committed Oct 31, 2024
1 parent eab116a commit 2688bd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/infinity_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def create_index(
h = self.net.set_up_header(
["accept", "content-type"],
)
d = self.set_up_data(
d = self.net.set_up_data(
["create_option"], {"comment" : index_comment, "fields": fields, "index": create_index_info, "create_option": copt}
)
r = self.net.request(url, "post", h, d)
Expand Down Expand Up @@ -404,9 +404,9 @@ def drop_index(

def show_index(self, index_name):
url = f"databases/{self.database_name}/tables/{self.table_name}/indexes/{index_name}"
h = self.set_up_header(["accept"])
r = self.request(url, "get", h)
self.raise_exception(r)
h = self.net.set_up_header(["accept"])
r = self.net.request(url, "get", h)
self.net.raise_exception(r)
r_json = r.json()
index_comment = r_json.get("index_comment", "")
return database_result(index_comment=index_comment)
Expand Down

0 comments on commit 2688bd8

Please sign in to comment.