From 20051e1a93d19f6bbe1ba27db9c4089195856c46 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Fri, 14 Jul 2023 09:17:11 +0800 Subject: [PATCH] article.py: correct data format --- app/model/article.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/article.py b/app/model/article.py index a3b4bf7..0a6a4d6 100644 --- a/app/model/article.py +++ b/app/model/article.py @@ -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, )