From f59e255a4af91ac2998d477207b168eb92d02f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B8=BD=E6=97=8B?= Date: Fri, 20 Oct 2023 15:05:09 +0800 Subject: [PATCH] [fix]: query without the parameter page --- 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 1ddb594b..2deaa899 100644 --- a/hugegraph-python/src/api/graph.py +++ b/hugegraph-python/src/api/graph.py @@ -221,11 +221,10 @@ def getEdgeByPage(self, label=None, vertex_id=None, direction=None, limit=0, pag 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:]