Store the version that matching the Session API so we do not reload every time

This commit is contained in:
allegroai 2020-04-09 11:35:51 +03:00
parent a425a70fc6
commit 070fd8149a

View File

@ -31,7 +31,7 @@ class ApiServiceProxy(object):
]])
version = str(min(Version(Session.api_version), ApiServiceProxy._max_available_version))
self.__dict__["__wrapped_version__"] = version
self.__dict__["__wrapped_version__"] = Session.api_version
name = ".v{}.{}".format(
version.replace(".", "_"), self.__dict__.get("__wrapped_name__")
)