Skip to content

Commit

Permalink
fix(version): backout version checks in query description functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Apr 26, 2024
1 parent cc48dc6 commit a3b6ba4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pyTigerGraph/pyTigerGraphQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,6 @@ def describeQuery(self, queryName: str, queryDescription: str, parameterDescript
The response from the database.
"""
logger.info("entry: describeQuery")
self.ver = self.getVer()
major_ver, minor_ver, patch_ver = self.ver.split(".")
if int(major_ver) < 4:
logger.info("exit: describeQuery")
raise TigerGraphException("This function is only supported on versions of TigerGraph >= 4.0.0.", 0)

if parameterDescriptions:
params = {"queries": [
Expand Down Expand Up @@ -647,11 +642,6 @@ def getQueryDescription(self, queryName: Optional[Union[str, list]] = "all"):
The description of the query(ies).
"""
logger.info("entry: getQueryDescription")
self.ver = self.getVer()
major_ver, minor_ver, patch_ver = self.ver.split(".")
if int(major_ver) < 4:
logger.info("exit: getQueryDescription")
raise TigerGraphException("This function is only supported on versions of TigerGraph >= 4.0.0.", 0)

if logger.level == logging.DEBUG:
logger.debug("params: " + self._locals(locals()))
Expand Down Expand Up @@ -681,11 +671,6 @@ def dropQueryDescription(self, queryName: str, dropParamDescriptions: bool = Tru
The response from the database.
"""
logger.info("entry: dropQueryDescription")
self.ver = self.getVer()
major_ver, minor_ver, patch_ver = self.ver.split(".")
if int(major_ver) < 4:
logger.info("exit: describeQuery")
raise TigerGraphException("This function is only supported on versions of TigerGraph >= 4.0.0.", 0)

if logger.level == logging.DEBUG:
logger.debug("params: " + self._locals(locals()))
Expand Down

0 comments on commit a3b6ba4

Please sign in to comment.