ADD: Subreddit search
This commit is contained in:
13
dto/post.py
13
dto/post.py
@@ -1,11 +1,18 @@
|
||||
class Post:
|
||||
def __init__(self, author, title, content, url, timestamp):
|
||||
def __init__(self, author: str,
|
||||
title: str,
|
||||
content: str,
|
||||
url: str,
|
||||
timestamp: float,
|
||||
source: str):
|
||||
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
|
||||
self.upvotes = None
|
||||
self.comments = None
|
||||
Reference in New Issue
Block a user