fix(library-desk): ensure page_id is int in get_page GraphQL call
GraphQL requires Int type, but page_id might be passed as string. Explicit int() conversion prevents 400 Bad Request errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -351,7 +351,8 @@ class WikiJSClient:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = await self._execute_query(query, {"id": page_id})
|
# Ensure page_id is int (GraphQL requires Int, not String)
|
||||||
|
data = await self._execute_query(query, {"id": int(page_id)})
|
||||||
page = data.get("pages", {}).get("single")
|
page = data.get("pages", {}).get("single")
|
||||||
|
|
||||||
# Extract tag strings from tag objects
|
# Extract tag strings from tag objects
|
||||||
|
|||||||
Reference in New Issue
Block a user