This is an automated email from the ASF dual-hosted git repository.
liuxiaocs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git
The following commit(s) were added to refs/heads/main by this push:
new 86c876e [chore] add auth param for property_key.remove() (#52)
86c876e is described below
commit 86c876e8f8b41575ea6642ebef4dcea1b9684a60
Author: Simon Cheung <[email protected]>
AuthorDate: Sun Jun 30 23:57:38 2024 +0800
[chore] add auth param for property_key.remove() (#52)
---
.../src/pyhugegraph/api/schema_manage/property_key.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hugegraph-python-client/src/pyhugegraph/api/schema_manage/property_key.py
b/hugegraph-python-client/src/pyhugegraph/api/schema_manage/property_key.py
index c0a3af4..e9f9e11 100644
--- a/hugegraph-python-client/src/pyhugegraph/api/schema_manage/property_key.py
+++ b/hugegraph-python-client/src/pyhugegraph/api/schema_manage/property_key.py
@@ -180,7 +180,7 @@ class PropertyKey(HugeParamsBase):
def remove(self):
dic = self._parameter_holder.get_dic()
url =
f'{self._host}/graphs/{self._graph_name}/schema/propertykeys/{dic["name"]}'
- response = self.__session.delete(url)
+ response = self.__session.delete(url, auth=self._auth,
headers=self._headers)
self.clean_parameter_holder()
if check_if_success(
response,