Workflow 1.1 bug fixes #74
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
**Root Cause:** - FastAPI route matching: /{prompt_id} caught ALL requests including /export-all - Specific routes MUST be defined BEFORE path parameter routes **Error:** ``` psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type uuid: "export-all" LINE 1: SELECT * FROM ai_prompts WHERE id='export-all' ``` **Fix:** - Moved /export-all and /import endpoints to line 106 (BEFORE /{prompt_id} at ~260) - Added warning comments to both functions - Fixed typo: for r in → for row in **Affected:** - /export-all: Internal Server Error → now works ✅ - /import: Would have had same issue → preemptively fixed ✅ Files changed: - backend/routers/prompts.py: Reordered route definitions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>