Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 87f2506

Browse files
committed
feat: Add created_at response
1 parent 018f534 commit 87f2506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/api/get_posts/lambda_function.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def lambda_handler(event, context):
5353
"blog_img": post.blog_img,
5454
"link": post.link,
5555
"short_description": post.short_description,
56+
"created_at": post.created_at.strftime("%Y-%m-%d %H:%M:%S"),
57+
"updated_at": post.updated_at.strftime("%Y-%m-%d %H:%M:%S"),
5658
}
5759
for post in db_posts
5860
]

0 commit comments

Comments
 (0)