Fix SQL parameter count in category filter query
The query uses base_where twice (for latest_any and latest_stable CTEs) but params were only passed once, causing sqlite3.ProgrammingError when filtering by category. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0a1c03ce09
commit
9699717443
|
|
@ -456,7 +456,7 @@ def create_app() -> Flask:
|
||||||
ORDER BY {order_sql}
|
ORDER BY {order_sql}
|
||||||
LIMIT ? OFFSET ?
|
LIMIT ? OFFSET ?
|
||||||
""",
|
""",
|
||||||
params + [per_page, offset],
|
params + params + [per_page, offset], # params twice for both CTEs
|
||||||
)
|
)
|
||||||
|
|
||||||
data = []
|
data = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue