article.py: correct data format
parent
5711f0e826
commit
20051e1a93
|
@ -7,7 +7,7 @@ def add_article(content, source="manual_input", level="5", question="No question
|
||||||
Article(
|
Article(
|
||||||
text=content,
|
text=content,
|
||||||
source=source,
|
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,
|
level=level,
|
||||||
question=question,
|
question=question,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue