This is an automated email from the ASF dual-hosted git repository.

ming 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 aeb451b  [fix]: query without the parameter page (#15)
aeb451b is described below

commit aeb451b285c1f73b1381981a844e6e7a4a6e29bf
Author: l~xuan <[email protected]>
AuthorDate: Fri Oct 20 15:23:11 2023 +0800

    [fix]: query without the parameter page (#15)
    
    [fix]: query without the parameter page (#15)
---
 hugegraph-python/src/api/graph.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/hugegraph-python/src/api/graph.py 
b/hugegraph-python/src/api/graph.py
index 1ddb594..2deaa89 100644
--- a/hugegraph-python/src/api/graph.py
+++ b/hugegraph-python/src/api/graph.py
@@ -221,11 +221,10 @@ class GraphManager(HugeParamsBase):
             para = para + "&label=" + label
         if properties:
             para = para + "&properties=" + json.dumps(properties)
-        if page is not None:
-            if page:
-                para += '&page={}'.format(page)
-            else:
-                para += '&page'
+        if page:
+            para += '&page={}'.format(page)
+        else:
+            para += '&page'
         if limit > 0:
             para = para + "&limit=" + str(limit)
         url = url + para[1:]

Reply via email to