Skip to content

Commit 2ad01b5

Browse files
committed
Udpate scemas version, set project status not started on create
1 parent 3afbe3c commit 2ad01b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
superannotate_schemas==1.0.40b2
1+
superannotate_schemas>=1.0.40b3

src/superannotate/lib/infrastructure/repositories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def get_all(self, condition: Condition = None) -> List[ProjectEntity]:
9999

100100
def insert(self, entity: ProjectEntity) -> ProjectEntity:
101101
project_data = self._drop_nones(entity.to_dict())
102-
if not project_data.get("status"):
103-
project_data["status"] = constance.ProjectStatus.NotStarted.value
102+
# new projects can only have the status of NotStarted
103+
project_data["status"] = constance.ProjectStatus.NotStarted.value
104104
result = self._service.create_project(project_data)
105105
return self.dict2entity(result)
106106

0 commit comments

Comments
 (0)