add ID field to post dto

This commit is contained in:
2026-01-11 20:36:19 +00:00
parent 68642709b7
commit 0cc95c5358
2 changed files with 5 additions and 1 deletions

View File

@@ -1,10 +1,13 @@
class Post:
def __init__(self, author: str,
def __init__(self,
id: str,
author: str,
title: str,
content: str,
url: str,
timestamp: float,
source: str):
self.id = id
self.author = author
self.title = title
self.content = content