From fd14642aa901617409d22813ae64d25fb213e902 Mon Sep 17 00:00:00 2001 From: GoldenAnpu Date: Wed, 10 Jul 2024 00:34:04 +0200 Subject: [PATCH] Fix check instance version compatibility --- src/workflow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/workflow.py b/src/workflow.py index 7be348b..35690b6 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -21,10 +21,14 @@ def __init__(self, api: sly.Api, min_instance_version: str = None): ) def check_instance_ver_compatibility(self): - if self.api.instance_version < self._min_instance_version: + if not self.api.is_version_supported(self._min_instance_version): sly.logger.info( - f"Supervisely instance version does not support workflow features. To use them, please update your instance minimum to version {self._min_instance_version}." + f"Supervisely instance version {self.api.instance_version} does not support workflow features." ) + if not sly.is_community(): + sly.logger.info( + f"To use them, please update your instance to version {self._min_instance_version} or higher." + ) return False return True