mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
8 lines
No EOL
288 B
Python
8 lines
No EOL
288 B
Python
class Article:
|
|
def __init__(self, template, title, category="uncategorized"):
|
|
self.template = template
|
|
self.title = title
|
|
self.category = "uncategorized" if category == None else category
|
|
|
|
def __repr__(self):
|
|
return f'Article(title="{self.title}")' |