mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
publish v1
This commit is contained in:
commit
761e6d810a
21 changed files with 526 additions and 0 deletions
8
classes.py
Normal file
8
classes.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
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}")'
|
Loading…
Add table
Add a link
Reference in a new issue