Fix dict attribute access in market hydrate_market

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:
giles
2026-02-25 03:11:29 +00:00
parent f6cdf126e4
commit e454187035

View File

@@ -186,7 +186,7 @@ def create_app() -> "Quart":
select(MarketPlace).where(
MarketPlace.slug == market_slug,
MarketPlace.container_type == "page",
MarketPlace.container_id == post.id,
MarketPlace.container_id == post["id"],
MarketPlace.deleted_at.is_(None),
)
)