Skip to content

Commit 6c29020

Browse files
fix
1 parent f203533 commit 6c29020

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyTigerGraph/pyTigerGraphBase.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ def __init__(self, host: str = "http://127.0.0.1", graphname: str = "MyGraph",
186186
restppPort = str(restppPort)
187187
gsPort = str(gsPort)
188188
sslPort = str(sslPort)
189-
if (self.tgCloud and (restppPort == "9000" or restppPort == "443")) or (restppPort == gsPort):
189+
if restppPort == gsPort:
190+
self.restppPort = restppPort
191+
self.restppUrl = self.host + ":" + restppPort + "/restpp"
192+
elif (self.tgCloud and (restppPort == "9000" or restppPort == "443")):
190193
if restppPort == gsPort:
191194
sslPort = gsPort
192195
self.restppPort = sslPort

0 commit comments

Comments
 (0)