#680 API workflow endpoints using cursor without dict_row
Description
EditBug: Several API endpoints in api/blueprints/v1/workflows.py used conn.cursor() without specifying row_factory=dict_row, but then tried to access rows as dicts (row['column_name']). This caused 'tuple indices must be integers or slices, not str' errors.
Affected endpoints:
- GET /workflows/definitions/<definition_id>
- GET /workflows/definitions/hash/<hash>
- GET /workflows/definitions/<name>/versions/<version>
- Several workflow run endpoints
Fix: Changed all conn.cursor() calls to conn.cursor(row_factory=dict_row) to return rows as dicts.
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...