Skip to content

Commit 5208529

Browse files
committed
Workmagament update
1 parent 7540ef6 commit 5208529

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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/lib/infrastructure/serviceprovider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def get_annotation_status_name(
9090
def _get_work_management_url(client: HttpClient):
9191
if client.api_url != constants.BACKEND_URL:
9292
return "https://work-management-api.devsuperannotate.com/api/v1/"
93-
return "https://work-management-api.devsuperannotate.com/api/v1/"
93+
return "https://work-management-api.superannotate.com/api/v1/"
9494

9595
@staticmethod
9696
def _get_item_service_url(client: HttpClient):
9797
if client.api_url != constants.BACKEND_URL:
9898
return "https://item.devsuperannotate.com/api/v1/"
99-
return "https://item.superannotate.com//api/v1/"
99+
return "https://item.superannotate.com/api/v1/"
100100

101101
def get_team(self, team_id: int) -> TeamResponse:
102102
return self.client.request(

src/superannotate/lib/infrastructure/services/work_management.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import base64
22

33
from lib.core.entities import WorkflowEntity
4+
from lib.core.exceptions import AppException
45
from lib.core.jsx_conditions import Filter
56
from lib.core.jsx_conditions import OperatorEnum
67
from lib.core.jsx_conditions import Query
@@ -16,7 +17,7 @@ class WorkManagementService(BaseWorkManagementService):
1617
def get_workflow(self, pk: int) -> WorkflowEntity:
1718
response = self.list_workflows(Filter("id", pk, OperatorEnum.EQ))
1819
if response.error:
19-
raise response.error
20+
raise AppException(response.error)
2021
for w in response.data:
2122
if w.id == pk:
2223
return w

0 commit comments

Comments
 (0)