Skip to content

Commit 5f83cb7

Browse files
shuvebclaude
andcommitted
Filter deleted projects from CLI and TUI project lists
Use deleted_at field (not status) to exclude soft-deleted projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6732be6 commit 5f83cb7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mfbt-cli"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = "CLI tool for the mfbt platform — interactive TUI and subcommands for managing mfbt projects"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/mfbt/commands/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def list_projects(
188188
try:
189189
resp = client.get("/api/v1/projects")
190190
projects = resp.body if isinstance(resp.body, list) else []
191-
projects = [p for p in projects if p.get("status") != "archived"]
191+
projects = [p for p in projects if not p.get("deleted_at")]
192192
finally:
193193
client.close()
194194

src/mfbt/tui/data_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def fetch_projects(self, limit: int = 50, offset: int = 0) -> DataPage:
4343
response = self._client.get("/api/v1/projects")
4444
body = response.body
4545
items: list[dict[str, Any]] = body if isinstance(body, list) else []
46-
items = [p for p in items if p.get("status") != "archived"]
46+
items = [p for p in items if not p.get("deleted_at")]
4747
# Apply client-side pagination on the plain array
4848
total = len(items)
4949
page = items[offset : offset + limit]

0 commit comments

Comments
 (0)