Files
crosspost/dto/post.py
Dylan De Faoite 152264bda9 separate comment and post data structures
This allows for a flat data structure, benefical to data analysis
2026-01-22 15:53:47 +00:00

20 lines
531 B
Python

class Post:
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
self.url = url
self.timestamp = timestamp
self.source = source
# Optionals
self.subreddit = None
self.upvotes = None