kenken999's picture
te
a746d34
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)