Skip to content

Commit

Permalink
fix: improve crud interface for creating projects
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Nov 8, 2023
1 parent 708ca12 commit 2374f01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/capellacollab/projects/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ 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,
slug=slugify.slugify(name),
description=description,
users=[],
visibility=visibility,
type=models.ProjectType.GENERAL,
type=type,
)

db.add(project)
Expand Down

0 comments on commit 2374f01

Please sign in to comment.