merge: origin/main(에이전트 여러 동작 · 사진 도구 · 카톡 승인 알림) 을 feature/template-catalog 에 병합
충돌은 이 브랜치의 주석 정리 커밋(11d30bb)과 main 의 기능 변경이 겹친 백엔드 9개 파일 —
main 쪽을 그대로 썼다(기능이 main 에만 있다). AGENTS.md 는 양쪽 링크를 모두 두고,
DEVLOG 는 요약본 위에 main 의 09-28 에이전트 항목 셋을 붙였다.
site eslint 통과 · vitest 123 passed · frontend tsc·eslint 통과 · 백엔드 py_compile 통과
(백엔드 pytest 는 이 기계에 테스트 DB 계정이 없어 실행하지 못함)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
1dc4f5fbf5
33 files changed
+4208
-209
No files matched your search
@@ -133,11 +133,20 @@ class PostCRUD:
|
||||
)
|
||||
return result.scalars().first()
|
||||
|
||||
async def mark_sent(self, cdb: AsyncSession, post_id, token_hash: str, expires_at) -> ErrorType:
|
||||
async def by_edit_token_hash(self, cdb: AsyncSession, token_hash: str):
|
||||
result = await cdb.execute(
|
||||
select(place_posts)
|
||||
.where(place_posts.edit_token_hash == token_hash, place_posts.deleted == False) # noqa: E712
|
||||
)
|
||||
return result.scalars().first()
|
||||
|
||||
async def mark_sent(self, cdb: AsyncSession, post_id, token_hash: str, expires_at,
|
||||
edit_token_hash: str | None = None) -> ErrorType:
|
||||
await cdb.execute(
|
||||
update(place_posts)
|
||||
.where(place_posts.post_id == post_id)
|
||||
.values(status=PostStatus.SENT.value, approve_token_hash=token_hash,
|
||||
edit_token_hash=edit_token_hash,
|
||||
token_expires_at=expires_at, sent_at=GTime.UTC(), updated_at=GTime.UTC())
|
||||
)
|
||||
return ErrorType.SUCCESS
|
||||
|
||||
Reference in new issue
Block a user