From a3b6ba46a478612a4176d9e567d216544845ecdb Mon Sep 17 00:00:00 2001 From: Parker Erickson Date: Thu, 25 Apr 2024 21:57:03 -0500 Subject: [PATCH] fix(version): backout version checks in query description functionality --- pyTigerGraph/pyTigerGraphQuery.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pyTigerGraph/pyTigerGraphQuery.py b/pyTigerGraph/pyTigerGraphQuery.py index ab043aef..d306e011 100644 --- a/pyTigerGraph/pyTigerGraphQuery.py +++ b/pyTigerGraph/pyTigerGraphQuery.py @@ -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": [ @@ -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())) @@ -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()))