kenken999's picture
fda
0f43f8a
raw
history blame
478 Bytes
# Article formatter
from dataclasses import dataclass
@dataclass
class Article:
title: str
thumbnail: str
image_files: list
content: str
hashtags: list
price: int
scheduled_time: str
is_paid: bool
def create_article(title, thumbnail, image_files, content, hashtags, price, scheduled_time, is_paid):
"""
Create an Article object
"""
return Article(title, thumbnail, image_files, content, hashtags, price, scheduled_time, is_paid)