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:]