fix: inject post data via blueprint context processor
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 33s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 33s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,9 @@ def register(url_prefix, title):
|
|||||||
async def inject_root():
|
async def inject_root():
|
||||||
market = getattr(g, "market", None)
|
market = getattr(g, "market", None)
|
||||||
market_id = market.id if market else None
|
market_id = market.id if market else None
|
||||||
|
post_data = getattr(g, "post_data", None) or {}
|
||||||
return {
|
return {
|
||||||
|
**post_data,
|
||||||
"coop_title": market.name if market else title,
|
"coop_title": market.name if market else title,
|
||||||
"categories": (await get_nav(g.s, market_id=market_id))["cats"],
|
"categories": (await get_nav(g.s, market_id=market_id))["cats"],
|
||||||
"qs": makeqs_factory()(),
|
"qs": makeqs_factory()(),
|
||||||
|
|||||||
Reference in New Issue
Block a user