Skip to content

Commit

Permalink
add is_demo to /projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-agenta committed Dec 4, 2024
1 parent bb15059 commit 2f7cc22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agenta-backend/agenta_backend/routers/projects_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ProjectsResponse(BaseModel):
project_name: str
# is_default_project: bool
user_role: Optional[str] = None
is_demo: Optional[bool] = False


router = APIRouter()
Expand Down Expand Up @@ -69,6 +70,7 @@ async def get_projects(
project_id=project_membership.project.id,
project_name=project_membership.project.project_name,
user_role=project_membership.role,
is_demo=project_membership.is_demo,
)
for project_membership in _project_memberships
]
Expand Down

0 comments on commit 2f7cc22

Please sign in to comment.