Fix dict attribute access in market hydrate_market
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m16s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m16s
post is a raw dict from fetch_data, not a DTO — use post["id"] instead of post.id. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -186,7 +186,7 @@ def create_app() -> "Quart":
|
|||||||
select(MarketPlace).where(
|
select(MarketPlace).where(
|
||||||
MarketPlace.slug == market_slug,
|
MarketPlace.slug == market_slug,
|
||||||
MarketPlace.container_type == "page",
|
MarketPlace.container_type == "page",
|
||||||
MarketPlace.container_id == post.id,
|
MarketPlace.container_id == post["id"],
|
||||||
MarketPlace.deleted_at.is_(None),
|
MarketPlace.deleted_at.is_(None),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user