article.py: correct data format

Bug511-Bosh
Lan Hui 2023-07-14 09:17:11 +08:00
parent 5711f0e826
commit 20051e1a93
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ def add_article(content, source="manual_input", level="5", question="No question
Article(
text=content,
source=source,
date=datetime.now().strftime("%-d %b %Y"), # format style of `5 Oct 2022`
date=datetime.now().strftime("%d %b %Y"), # format style of `5 Oct 2022`
level=level,
question=question,
)