Fix DTO compatibility in cart templates and page_cart service
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m58s

- page_cart.py: use ce.calendar_container_id instead of ce.calendar.container_id
- _cart.html: use entry.calendar_name instead of entry.calendar.name
- Update shared submodule with DTO field additions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-19 05:05:04 +00:00
parent cf04a3a9fd
commit edad7b299d
2 changed files with 3 additions and 3 deletions

View File

@@ -101,8 +101,8 @@ async def get_cart_grouped_by_page(session) -> list[dict]:
groups[pid]["cart_items"].append(ci)
for ce in cal_entries:
if ce.calendar and ce.calendar.container_id:
pid = ce.calendar.container_id
if ce.calendar_container_id:
pid = ce.calendar_container_id
else:
pid = None
groups[pid]["post_id"] = pid

View File

@@ -43,7 +43,7 @@
<li class="flex items-start justify-between text-sm">
<div>
<div class="font-medium">
{{ entry.name or entry.calendar.name }}
{{ entry.name or entry.calendar_name }}
</div>
<div class="text-xs text-stone-500">
{{ entry.start_at }}