fix(expense-db): _serialize 에서 decided_at 도 ISO 문자열로 변환

신규 워크플로 컬럼 decided_at (TIMESTAMPTZ) 가 datetime 그대로 템플릿에
전달돼 'datetime.datetime' object is not subscriptable 로 500 발생.
created_at/updated_at 과 같이 isoformat 변환 대상에 포함.
This commit is contained in:
2026-05-29 03:29:16 +09:00
parent a4eaf9b770
commit d2c1dfa2a0
+1 -1
View File
@@ -465,7 +465,7 @@ class ExpenseDBStore:
out = dict(row) out = dict(row)
if isinstance(out.get("spent_at"), date): if isinstance(out.get("spent_at"), date):
out["spent_at"] = out["spent_at"].isoformat() out["spent_at"] = out["spent_at"].isoformat()
for k in ("created_at", "updated_at"): for k in ("created_at", "updated_at", "decided_at"):
v = out.get(k) v = out.get(k)
if isinstance(v, datetime): if isinstance(v, datetime):
out[k] = v.astimezone(timezone.utc).isoformat(timespec="seconds") out[k] = v.astimezone(timezone.utc).isoformat(timespec="seconds")