Fix circular fragment fetching (shared submodule update)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m50s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 18:20:50 +00:00
parent 08c58d34f9
commit 57ae97f17b
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@@ -46,6 +46,7 @@ async def blog_context() -> dict:
ctx["cart_total"] = float(summary.total + summary.calendar_total + summary.ticket_total) ctx["cart_total"] = float(summary.total + summary.calendar_total + summary.ticket_total)
# Pre-fetch cross-app HTML fragments concurrently # Pre-fetch cross-app HTML fragments concurrently
# (fetch_fragment auto-skips when inside a fragment request to prevent circular deps)
user = getattr(g, "user", None) user = getattr(g, "user", None)
cart_params = {} cart_params = {}
if ident["user_id"] is not None: if ident["user_id"] is not None:
@@ -54,7 +55,6 @@ async def blog_context() -> dict:
cart_params["session_id"] = ident["session_id"] cart_params["session_id"] = ident["session_id"]
auth_params = {"email": user.email} if user else {} auth_params = {"email": user.email} if user else {}
nav_params = {"app_name": "blog", "path": request.path} nav_params = {"app_name": "blog", "path": request.path}
cart_mini_html, auth_menu_html, nav_tree_html = await fetch_fragments([ cart_mini_html, auth_menu_html, nav_tree_html = await fetch_fragments([

2
shared

Submodule shared updated: 20d3ff8425...9ab4b7b3fe