From e5821ef3f8ac1f5f39af33d212e8a9b49c934b86 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 9 Apr 2026 18:17:48 -0400 Subject: [PATCH] fix: allow 'paused' in project status validation --- src/fabledassistant/routes/projects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fabledassistant/routes/projects.py b/src/fabledassistant/routes/projects.py index 37d6e36..6e1e9c6 100644 --- a/src/fabledassistant/routes/projects.py +++ b/src/fabledassistant/routes/projects.py @@ -52,7 +52,7 @@ async def create_project_route(): if not data.get("title"): return jsonify({"error": "title is required"}), 400 status = data.get("status", "active") - if status not in ("active", "completed", "archived"): + if status not in ("active", "paused", "completed", "archived"): return jsonify({"error": "status must be 'active', 'completed', or 'archived'"}), 400 project = await create_project( uid, @@ -89,7 +89,7 @@ async def update_project_route(project_id: int): data = await request.get_json() allowed = {"title", "description", "goal", "status", "color"} fields = {k: v for k, v in data.items() if k in allowed} - if "status" in fields and fields["status"] not in ("active", "completed", "archived"): + if "status" in fields and fields["status"] not in ("active", "paused", "completed", "archived"): return jsonify({"error": "status must be 'active', 'completed', or 'archived'"}), 400 project = await update_project(uid, project_id, **fields) if project is None: