Skip to content

Commit 9efeed5

Browse files
committed
Fix system status check
1 parent 9278467 commit 9efeed5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
;pytest_plugins = ['pytest_profiling']
6-
;addopts = -n auto --dist=loadscope
6+
addopts = -n auto --dist=loadscope

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55

6-
__version__ = "4.4.25b1"
6+
__version__ = "4.4.25b2"
77

88
os.environ.update({"sa_version": __version__})
99
sys.path.append(os.path.split(os.path.realpath(__file__))[0])

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def execute(self):
848848
if response.error:
849849
raise response.error
850850
workflow = response.data[0]
851-
if workflow.is_system and uploaded_annotations and not self._keep_status:
851+
if workflow.is_system() and uploaded_annotations and not self._keep_status:
852852
statuses_changed = set_annotation_statuses_in_progress(
853853
service_provider=self._service_provider,
854854
project=self._project,
@@ -1090,7 +1090,7 @@ def execute(self):
10901090
if not response.ok:
10911091
raise AppException(response.error)
10921092
workflow = response.data[0]
1093-
if workflow.is_system and not self._keep_status:
1093+
if workflow.is_system() and not self._keep_status:
10941094
statuses_changed = set_annotation_statuses_in_progress(
10951095
service_provider=self._service_provider,
10961096
project=self._project,

tests/applicatoin/custom_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def step_3_create_annotation_classes(self):
100100

101101
def step_4_upload_annotations(self):
102102
uploaded, _, __ = sa.upload_annotations_from_folder_to_project(
103-
self.PROJECT_NAME, self.annotations_path, keep_status=True
103+
self.PROJECT_NAME, self.annotations_path
104104
)
105105
attached_items_count = len(attached_item_names.get())
106106
assert len(uploaded) == attached_items_count

0 commit comments

Comments
 (0)