From 2374f010a0e5701979a3cfa3934bbab2b1f0c188 Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Wed, 8 Nov 2023 09:58:23 +0100 Subject: [PATCH] fix: improve crud interface for creating projects --- backend/capellacollab/projects/crud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/capellacollab/projects/crud.py b/backend/capellacollab/projects/crud.py index 04cd7e0472..ff9018f50a 100644 --- a/backend/capellacollab/projects/crud.py +++ b/backend/capellacollab/projects/crud.py @@ -59,6 +59,7 @@ def create_project( name: str, description: str = "", visibility: models.Visibility = models.Visibility.PRIVATE, + type: models.ProjectType = models.ProjectType.GENERAL, ) -> models.DatabaseProject: project = models.DatabaseProject( name=name, @@ -66,7 +67,7 @@ def create_project( description=description, users=[], visibility=visibility, - type=models.ProjectType.GENERAL, + type=type, ) db.add(project)