Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ minversion = 3.7
log_cli=true
python_files = test_*.py
;pytest_plugins = ['pytest_profiling']
;addopts = -n auto --dist=loadscope
addopts = -n auto --dist=loadscope
2 changes: 1 addition & 1 deletion src/superannotate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys


__version__ = "4.4.25b1"
__version__ = "4.4.25b2"

os.environ.update({"sa_version": __version__})
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
Expand Down
4 changes: 2 additions & 2 deletions src/superannotate/lib/core/usecases/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def execute(self):
if response.error:
raise response.error
workflow = response.data[0]
if workflow.is_system and uploaded_annotations and not self._keep_status:
if workflow.is_system() and uploaded_annotations and not self._keep_status:
statuses_changed = set_annotation_statuses_in_progress(
service_provider=self._service_provider,
project=self._project,
Expand Down Expand Up @@ -1090,7 +1090,7 @@ def execute(self):
if not response.ok:
raise AppException(response.error)
workflow = response.data[0]
if workflow.is_system and not self._keep_status:
if workflow.is_system() and not self._keep_status:
statuses_changed = set_annotation_statuses_in_progress(
service_provider=self._service_provider,
project=self._project,
Expand Down
4 changes: 2 additions & 2 deletions src/superannotate/lib/core/usecases/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def __init__(
if response.error:
raise AppException(response.error)
workflow = response.data[0]
if workflow.is_system:
if workflow.is_system():
annotation_status_value = (
self._service_provider.get_annotation_status_value(
self._project, "NotStarted"
Expand Down Expand Up @@ -1112,7 +1112,7 @@ def execute(self):
if response.error:
raise AppException(response.error)
workflow = response.data[0]
if workflow.is_system:
if workflow.is_system():
self._annotation_status_value = (
self._service_provider.get_annotation_status_value(
self._project, "NotStarted"
Expand Down
2 changes: 1 addition & 1 deletion tests/applicatoin/custom_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def step_3_create_annotation_classes(self):

def step_4_upload_annotations(self):
uploaded, _, __ = sa.upload_annotations_from_folder_to_project(
self.PROJECT_NAME, self.annotations_path, keep_status=True
self.PROJECT_NAME, self.annotations_path
)
attached_items_count = len(attached_item_names.get())
assert len(uploaded) == attached_items_count
Expand Down